Kan,

Thanks for your answer. I am a newbie with Tomcat/Java and do not know how to do that. By the way it switches to the same locale, but different character encoding (my language has at least 4 character encodings).

Andrew

Kan Ogawa wrote:

Hi, Andrew.


-----Original Message-----
From: Andrew Guts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 6:36 PM

Why fmt:formatNumber switches response characher encoding? And how to avoid it?
My platform is TomCat 4.1.12 on w2k.


As i18n-capable formatting tags in JSTL are requested, These tags initially call the javax.servlet.ServletResponse#setLocale() method.
javax.servlet.ServletResponse#setLocale() sets not only the specified locale,
but also the resonse character encoding suitable for it.
The character encoding setting is dependent on the servlet container.

If the container is Tomcat 4, you can modify the following resource,
"org.apache.catalina.util.CharsetMapperDefault.properties" in Catalina APIs.

Regards,



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to