One of my try to solve the problem is to use utf-8 in my html page as well as
in my backend. It doesn’t work because the reason was that the Browser
change automatically to iso encoding. Today I checked the browser encoding
before submit the query and saw that it use iso although in my html page it
is utf-8. I changed to utf-8 manually and submit the query and it works
fine. 

I a login page (it has utf-8) I checked this also manually; after login is
successful a jsp page will be called to enter the query. This jsp page use
iso encoding although inside it utf-8 is defined.

I couldn’t understand from why the browser automatically user iso encoding
although I force it to use utf-8.

Here how I do:

<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>


starz10de wrote:
> 
> I have an application which is running in local machine and it work
> perfect. I installed my application in the server to make it available for
> all. In the server we have tomcat running and provide services for many
> instances. After I played my application in the server, I had problem with
> query which have special language character. After long time, I could find
> where is the problem. The problem was in server.xml where the URIEncoding
> is set to "UTF-8". I made test and just removed this line or set it to
> "ISO-8859-1" and all was perfect. My question here is it possible to set
> the URIEncoding for each instance or is it possible to set it some where
> else. I send the query from jsp page to the servlet. in my jsp page the
> charset=ISO-8859-1". I tried to make all utf-8 but I couldn't success. I
> tried the filter approach but also doesn't help: 
> 
> <filter> 
> <filter-name>Set Character Encoding</filter-name> 
> <filter-class>servlet.CharsetFilter</filter-class> 
> <init-param> 
> <param-name>encoding</param-name> 
> <param-value>ISO-8859-1</param-value> 
> </init-param> 
> </filter> 
> 
> <!-- Define filter mappings for the defined filters --> 
> <filter-mapping> 
> <filter-name>Set Character Encoding</filter-name> 
> <servlet-name>action</servlet-name> 
> </filter-mapping> 
> 
> 
> Any hint will be appreciated. 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/URIEncoding-tp32989250p32997524.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to