Hi Jonathan,

One way is to set the encoding specifically when you start Tomcat using (change the 
script):
C:\Java\j2sdk1.4.1\bin\java.exe -jar -Dfile.encoding=UTF-8 -Duser.dir="C:\Java\Tomcat 
4.1" "C:\Java\Tomcat 4.1\bin\bootstrap.jar" start

And this way you are sure the encoding is set for the JVM who is running Tomcat. This 
should work in every version of Tomcat.

Hugo

-----Original Message-----
From: Jonathan Abramsohn [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 9. M�rz 2004 13:52
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: UTF-8 special characters


I have tried it on tomcat 4.0.1 and 4.0.6 both on Linux RH9 and win2k Still doesn't 
help. And I can't upgrade my tomcat version any far than this. Any Ideas?

Thanks 
Jonathan 

-----Original Message-----
From: Mariano [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 09, 2004 12:55
To: 'Tomcat Users List'
Subject: RE: UTF-8 special characters

This work fine with Tomcat 5.0.19, which version of tomcat are you using?

I don't try it in other versions.

Mariano

-----Mensaje original-----
De: Jonathan Abramsohn [mailto:[EMAIL PROTECTED]
Enviado el: martes, 09 de marzo de 2004 11:04
Para: Tomcat Users List
Asunto: RE: UTF-8 special characters


I've tried it and it doesn't help. Am I doing something wrong?

-----Original Message-----
From: Mariano [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 09, 2004 11:56
To: 'Tomcat Users List'
Subject: RE: UTF-8 special characters

Put this in 8080 connector of your server.xml file,lookup for URIEncoding="UTF-8", 
tomcat automatically do encoding:

<Connector port="8080"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               debug="0" connectionTimeout="20000"
                   URIEncoding="UTF-8"
               disableUploadTimeout="true" />

Mariano

-----Mensaje original-----
De: Jonathan Abramsohn [mailto:[EMAIL PROTECTED]
Enviado el: martes, 09 de marzo de 2004 10:45
Para: Tomcat Users List
Asunto: UTF-8 special characters


Hi all

After solving the most of the internationalization problems I had, I still have, some 
problem:

If I have, some special character, in the query string (e.g. the URL), like � or �  
tomcat gets it as é or ç.

Same thing I had with user input, but there, the problem was solved by setting the 
request encoding to "UTF-8"

At the first request.

Any ideas?



Thanks
Jonathan





****************************************************************************
**********************
The contents of this email and any attachments are confidential. They are intended for 
the named recipient(s) only. If you have received this email in error please notify 
the system manager or the sender immediately and do not disclose the contents to 
anyone or make copies.

** eSafe scanned this email for viruses, vandals and malicious content. **
****************************************************************************
**********************




****************************************************************************
**********************
The contents of this email and any attachments are confidential. They are intended for 
the named recipient(s) only. If you have received this email in error please notify 
the system manager or the sender immediately and do not disclose the contents to 
anyone or make copies.

** eSafe scanned this email for viruses, vandals and malicious content. **
****************************************************************************
**********************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




**************************************************************************************************
The contents of this email and any attachments are confidential. They are intended for 
the named recipient(s) only. If you have received this email in error please notify 
the system manager or  the 
sender immediately and do not disclose the contents to anyone or make copies.

** eSafe scanned this email for viruses, vandals and malicious content. **
**************************************************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to