You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chaitanya Pallapothula <cp...@yahoo.com> on 2003/09/04 02:55:32 UTC

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