Java Mailing List Archive

http://www.junlu.com/

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

Re: Character Encoding : Unix vs Windows

Michael J.

2006-04-03

Replies:

On 4/3/06, Nigel Blake <nigelblake@(protected):
> Problem : Creating a URL type with parameters that have a space
> between them causes an IOException in a javabean when called from
> Tomcat 5.0.0.27 on a Unix installation. Using the same bean and JSP
> code causes no problem when invoked on the same version of Tomcat on a
> Windows installation.
>
> Solutions tried :
>
> 1.Ensured that the server connector encoding is UTF-8 (suggested in the FAQ)
> 2. Have ensured that jsp the page instruction is UTF-8
> 3. I could turn the bean into a servlet and try using the
> setContentType or SetCharacterEncoding. ( I would rather not )
>
> Any suggestions that would make Unix implementation work would be
> gratefully received. I have run out of ideas...

URLEncoder.encode(), URLEncoder.decode()

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

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