|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








