to show you what is it all about i wrote a small app which shows the html utf-8 codes of the entered string. this is the jsp code:
well, as you see, this code block gets a utf-8 encoded parameter from a request, outputs its length, the parameter itself, and its html utf-8 codes. to test it i send a hebrew letter ALEF. on tomcat 4.xx everything works perfect and i get the following response:
7 א & #1488;
(in case you don't see it here, it's 7 , alef's utf-8 code and alef's utf-8 code parsed to be visible in browser)
cool. then i run the same code on tomcat 5.0.16 and KABOOM. this is what i get:
1 ? ?
where the hell utf-8 is gone?
all this makes me understand that tomcat 5 has some bug influenting its utf-8 support. deeply in the heart i hope you've already met this early and has a good solution, because i don't!
[ July 02, 2004: Message edited by: Asher Tarnopolski ] [ July 03, 2004: Message edited by: Asher Tarnopolski ]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com