1) 4.1.12 is full of bugs 2) HTML header is prior to <meta> tag, so if you don't specify encoding in the response the default one is enforced "ISO-8859-1" (you can see it in generated code for JSP servlet) 3) Setting it directly to response.setContentType() wont work, don't know why, it's a bug in Tomcat as far as I investigated 4) Only solution is to use <[EMAIL PROTECTED] pageEncoding=... %> in the begining of your JSPs and that does not work for me for all the tomcats 4.1.X but works for 4.0.6
I can't say WHY it is happening! I guess coz it is open source code and nobody is responsible for anything! _______________________________________________________ Living things are systems that tend to respond to changes in their environment, and inside themselves, in such a way as to promote their own continuation. Janis Olekss Exigen Latvia System Analyst (Office) +371 7072900 (Cell) +371 9136267 Chaitanya Pallapothula <[EMAIL PROTECTED]> 09/04/2003 03:55 Please respond to "Tomcat Users List" To: [EMAIL PROTECTED] cc: Subject: Internationalization Problem Hi I have been working on Internationalization and during that process I encountere this strange problem. My server is sending the right characters(Russian) to the browser. And also I have put this tag "<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=utf-8">" in the head pasrt of my out put. The problem is browser cannot render the characters correctly. And when I see the view -> Encoding menu of the browser "Western Europian(Windows)" was selected. If I manually change that to UTF-8 it paints the correct characters. So I added the code(socument.chatset="utf-8") to force the browser to select UTF-8 as encoding. This time the encoidng was selected as UTF-8 and still the browser doesnt paint the characters correctly. If I click on view->Encoding->UTF-8 manually(Though utf-8 is selected by default). It paints the characters correctly. I am confused with this kind of behaviour. I am using tomcat4.1.12 as my servlet engine and web server. And also I am using struts framework(tag lib also). Note: When I set the charset in the response. The server doesnt send the right characters to the browser. If I dont set any charset in the response header, server sends the right charset to the browser. I am also confused whether the problem is browser or the server. Any help would be greatly apreciated. Thanks Chaitanya __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]