This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Special Characters in URLs


As usual, Mike Brown has the encoding answers. Just to add a footnote:

> If you make the containing document utf-8 instead of iso-8859-1, you
can
> assume that all the escaping is UTF-8 based, and then you can convert
the
> misinterpreted-as-iso-8859-1 strings you get from the form data API
back
> to iso-8859-1 bytes and then read these bytes back into a string using
> utf-8 interpretation.
>

If by any chance you're using Perl and the cgi.pm module to receive
these queries, just make sure you have the latest versions of both Perl
5.6 and cgi.pm and you'll find it automagically handles all this for you
provided you let the cgi module parse and return your form data to your
script. It was the happiest day of my life when I discovered this (I
have to handle a lot of Chinese, Japanese and Korean form data coming at
me from all sorts of browsers, but this wonderful stuff makes it
completely transparent)

Michael
---------------------------------------------------------
Michael Beddow   http://www.mbeddow.net/
XML and the Humanities page:  http://xml.lexilog.org.uk/
---------------------------------------------------------


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]