tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: request.getParameter() in JSP misinterpreting foreign characters
Date Tue, 20 Feb 2007 22:25:30 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ramez,

Ramez Ghazzaoui wrote:
> Thank you guys. Sounds like I need to either write or find a method that
> converts strings to UTF-8. I'll try this tomorrow.

Generally, java.net.URLEncoder.encode(yourString, "UTF-8") will do this
for you quite well. No need to roll your own.

If you use a JSP tag library for building URLs or anything like that,
your taglib should be providing this capability already.

Hope that helps,
- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF23Va9CaO5/Lv0PARAiT4AKCNxxZjTGJk0QTUVTk8HB6iI+7TYQCfTL1y
nz5Q084x5AKQXDrGJzPFZR0=
=HTe7
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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


Mime
View raw message