Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

URLEncoder

Roland Carlsson

2005-09-01

Replies:

Hi!

Why does my standalone application encode characters different than in
Tomcat?

The swedish letters ??? run through java.net.URLEncoder("???",
"ISO8859_1") in my application i get:
%E5%E4%F6

but when i run the same code through Tomcat i get:
%C3%A5%C3%A4%C3%B6

Characterencoding is difficult enough without java being consistent.

Thanks in advance
Roland Carlsson

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.