Auto-Replace "&" in "and" |
Auto-Replace "&" in "and" |
kugelrund |
Jul 26 2006, 12:55 PM
Post
#1
|
Newbie Group: Members Posts: 2 Joined: 26-July 06 Member No.: 110 |
Hi All,
first thanks for this nice tool - it works very good. I export the Songinfo in a "musicinfo.txt" file - it works well than i want to import the "musicinfo.txt" in a SWF file - it works too but makes problems with some text. For Example: in the musicinfo.txt = "Mike & Mechanics - Wonderfull" But the SWF just shows me "Mike " and nothing more Is it possible to replace all the "&" with "and" to bcome the right info in the swf like "Mike and Mechanics - Wonderfull" Thanks from Austria Robert |
Serge |
Jul 26 2006, 03:05 PM
Post
#2
|
AMIP Developer Group: Root Admin Posts: 935 Joined: 12-March 06 Member No.: 1 |
Looks like the problem is caused not by &, but by space, you can try using urlencode function ($ue), refer to AMIP help for details.
If the problem is caused by &, then you can replace it with "and" using: CODE $strrep(search,replace,subject) Returns a string with all occurrences of search in subject replaced with the given replace value It's also described in AMIP help. |
kugelrund |
Jul 26 2006, 04:06 PM
Post
#3
|
Newbie Group: Members Posts: 2 Joined: 26-July 06 Member No.: 110 |
Hi Serge, this one works
CODE $strrep(&,and,%name) Thank you very much!!!! |
glennallen |
Sep 23 2007, 12:19 PM
Post
#4
|
Newbie Group: Members Posts: 4 Joined: 12-March 07 Member No.: 255 |
Just an FYI...
I just finished installing latest Skype with latest AMIP (to work with latest foobar2000). All works fine except for one situation: when the artist name (and/or, I suppose, a track name, too) contains an ampersand (&), which isn't that unusual of an occurrence. The %name info would display on the Skype status bar but not in the mood area (the box below the status bar which opens/closes (toggles) when you click on it). (It will show up if I click in the mood area, but that's not something I would typically want to do. Basically, it looks like Skype is waiting for something further if it sees an '&', so not a "problem" with AMIP but with Skype. ) After updating the format to auto-replace '&' with 'and' as specified above, it works fine. Cool beans! |