Prev Previous Post   Next Post Next
Old 13th March 2012, 16:21   #1
HaMsTeYr
Junior Member
 
Join Date: Feb 2006
Posts: 44
Removing invalid characters from a string

I don't know if I'm not looking hard enough, but I couldn't find a topic on this, so I'm posting it here.

Essentially, in my nsis program I'm running some of the files have strange characters like " ®" or "©". They're problemful for me and I need them removed from the string itself.

So for example, $0 contains:

"Application Name Example® v1.0"

I need it to become:

"Application Name Example v1.0"

I know there are results about removing the more standard 'found on keyboard' invalid characters, but what about ones like these?

I've tried:
code:
${WordReplace} "$0" "®" "" "+" $0

But that doesn't seem to work.

Any workaround to this?
HaMsTeYr is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
invalid character delete

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump