I'm having trouble with character encoding for a web application. There is a pop up that queryes the database with user input (search a person by name). The problem is that accented characters are being transformed into weird letters like ó => ó
. This is a pretty standard problem but I can't figure out what is going on.
What have I done?
Mainly, follow this.
- Setting at the first filter on my tomcat
(request&response).setCharacterEncoding("UTF-8");
- Setting every
web.xml
,server.xml
the character encodign parameter<?xml version='1.0' encoding='utf-8'?>
. - Changing URIEncoding to UTF-8 in the connectors. Using firebug, I already see that content-type is set to
text/html; utf-8
on the get posts (which are mainly the ones with problems) - Change meta types and @page on the jsp's to UTF-8.
But I still have the same problems, although some have been solved, for example, some accented letters sent from the server to the client, are displaying correctly.
I have apache2.2 and tomcat 6 installed.
I don't know what else to do nor what relevant information should I post here (if you need something please tell me)...
Thanks in advance.