[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [idn] Re: NN%<-->UTF8
Hello Tim,
At 11:33 01/10/08 -0700, Tim Langdell wrote:
>Does anyone please have a link to a good conversion routine for NN% to and
>from UTF8 for URI transport? Perl script would be good ...
You probably mean the %HH convention used in URIs?
Converting from UTF-8 to %HH is rather easy; I can write
that code in Perl if you can use it (I should write it
anyway as an example).
Converting from %HH to UTF-8 is not as easy, unless you
know that the %HHs you are dealing with indeed came from
a decent string (e.g. no controls,...) decently encoded
in UTF-8.
Regards, Martin.