You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Zhou, Yan" <yz...@medplus.com> on 2008/07/03 15:25:07 UTC
how to set character encoding in Tomcat 6.0
Hi There,
With the default Tomcat 6.0, the following results in
"UnsupportedEncodingException", how do I configure Tomcat for different
encoding?
I am setting the response in my Servlet:
response.setCharacterEncoding("UTF-7");
Thanks,
Yan Zhou
Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email (postmaster@MedPlus.com). After replying, please erase it from your computer system.
RE: how to set character encoding in Tomcat 6.0
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Zhou, Yan [mailto:yzhou@medplus.com]
> Subject: how to set character encoding in Tomcat 6.0
>
> response.setCharacterEncoding("UTF-7");
Java does not normally include UTF-7 support (probably a good thing). There is a SourceForge package you might try if you really, really need to use it:
http://sourceforge.net/projects/jutf7
I have no idea how well it works.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
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