tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Viorel Dragomir" <vdrago...@wylog.com>
Subject Re: URLEncoder
Date Thu, 01 Sep 2005 15:34:07 GMT
Try to set a default character encoding for both app [yours and tomcat].




Viorel Dragomir

.
..
-------------------------------------------------------------------



----- Original Message ----- 
From: Roland Carlsson 
To: tomcat-user@jakarta.apache.org 
Sent: Thursday, September 01, 2005 16:27
Subject: URLEncoder


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@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message