tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnny Kewl" <j...@kewlstuff.co.za>
Subject Re: Character encoding
Date Wed, 18 Jun 2008 15:34:18 GMT

----- Original Message ----- 
From: "André Warnier" <aw@ice-sa.com>

> Could you give an example of such a UTF-8 encoded URI ?
> (and tell us what it should be decoded to)
> Thanks

Andre have a look here... its not url encoding, thats something different
It about being able to store japanese and typically trying to match it all 
with the dB's encoding.

Heres some1's explanation of encoding history and why UTF8 is a good 
thing...

http://www.joelonsoftware.com/articles/Unicode.html

And here is a typical solution on TC's wiki

http://wiki.apache.org/tomcat/Tomcat/UTF-8

And in the real world it gets hectic ;)

Like in Netbeans if you dont put this in Opts
Dfile.encoding=UTF-8
You not seeing Japanese in your editor... and it wont save the files as UTF 
8

Then you think cool... until you find out you can stand on your head and a 
property file will not encode in UTF 8...

Then you may have some lib that converts back to ASCII and you cant figure 
it out...
Its a headache... but necessary... Java actually does a pretty good job of 
things in String just by default, but if you look at all the options you 
going to find the whole encoding thing going on there as well.

Then you try just the <%@ page contentType and its perfect, next project for 
some unknown reason you got to do the old fashioned meta tag in the web 
pages as well....

.... fun stuff ;) 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message