Jochem van Dieten wrote:
> Jeff Chastain wrote:
>>
>> I have an encoded text string that I am needing to decode.  The string is in
>> the format ...
>>
>> http%u003A%u002F%u002Fwww%u002Egoogle%u002Ecom
>>
>> .... which I am being told is called Quad Character Unicode.  I have played
>> with all of the different character sets in CFMX and I cannot get this
>> string to decode properly.  Does anybody have any suggestions?
>
> It is just hex with a weird delimiter (% instead of /). The quick
> and dirty fix is to use:
> URLDecode(REReplaceNoCase(string,"%(u00)[0-7][0-9a-z]","","ALL"))

I messed up that regex. The intention is to transform %u003A to
%3A, for which the following will work better:
URLDecode(REReplaceNoCase(string,"%u00([0-7][0-9a-z])","%\1","ALL"))

Jochem
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to