Filtering Strange characters in text

Stephen Quinn Barncard stephenREVOLUTION at barncard.com
Tue Jul 29 15:14:00 EDT 2003


OOPS,
I should note in the old HC code that I had been using an XCMD called 
Replace2, which I patched using a handler that called Rev's internal 
Replace command instead of the old XCMD - a cheesy way to get my old 
code to work instead of changing all the instances (but I got up and 
running a lot quicker).

So my example should look like:

put Replace(theBlock,numToChar(230)," ") into theBlock
OR
put Replace(theBlock,"Ê"," ") into theBlock

something else is at work here as I copied the  "Ê" from my browser, 
pasted it into the Replace code. Then when I copied it back from the 
Rev script editor into the mailer for my example - it looked ok when 
I sent it, then it came back as  "ñ". Perhaps I should filter for 
that char!

>
>
>here's my usage:
>
>put Replace("ñ"," ",theBlock) into theBlock
>
>this doesn't work either...
>put Replace(numToChar(230)," ",theBlock) into theBlock
>
>I guess I'll try Regex next. But this should work!



More information about the use-livecode mailing list