Filtering Strange characters in text
Toma Tasovac
ttasovac at Princeton.EDU
Tue Jul 29 17:58:01 EDT 2003
Did you by any chance set the useUnicode to true? Because if you did,
then the numToChar(230) will be "æ" (i.e. ligature ae), which might
explain why "Ê" does not get replaced... But then again, it's probably
not this easy... :)
T.
On Utorak, Jul 29, 2003, at 22:06 Europe/Belgrade, Stephen Quinn
Barncard wrote:
> 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!
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list