You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Carlos Godoy <ca...@terra.es> on 2003/02/19 15:59:37 UTC
Special characters
I have changed Jserv to Tomcat.
I'm in trouble with special characters and I dont't know where is the
problem.
All the special characters that servlet writes to the web page are changed
by a '?' character.
I add the useUnicode & characterEncoding parameters of mm.mysql.Driver.
With this solution the resultsets of database selects shows specials
characters correctly.
But I still havent found the solution for strings that don't come from
database and, with db columnames with special characters.
Anybody can help me?
Thanks
Carlos Godoy
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Special characters
Posted by Cindy Ballreich <ci...@ballreich.net>.
At 03:59 PM 2/19/03 +0100, Carlos Godoy wrote:
>I have changed Jserv to Tomcat.
>I'm in trouble with special characters and I dont't know where is the
>problem.
>
>All the special characters that servlet writes to the web page are changed
>by a '?' character.
>
>I add the useUnicode & characterEncoding parameters of mm.mysql.Driver.
>With this solution the resultsets of database selects shows specials
>characters correctly.
>
>But I still havent found the solution for strings that don't come from
>database and, with db columnames with special characters.
>
>Anybody can help me?
Carlos,
This is just a guess, but check the default encoding that your browser uses. I'll bet it's something other than unicode. My solution to this problem is to check for special characters and substitute the appropriate html entity or code before displaying the text. That way I don't need to worry so much about the user's browser not being able display the encoding.
I found this page to be very useful...
http://www.webenalysis.com/special-characters.asp
I hope this helps.
Cindy
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Special characters
Posted by Kaarle Kaila <ka...@iki.fi>.
At 15:59 19.2.2003 +0100, you wrote:
>I have changed Jserv to Tomcat.
>I'm in trouble with special characters and I dont't know where is the
>problem.
>
>All the special characters that servlet writes to the web page are changed
>by a '?' character.
>
>I add the useUnicode & characterEncoding parameters of mm.mysql.Driver.
>With this solution the resultsets of database selects shows specials
>characters correctly.
>
>But I still havent found the solution for strings that don't come from
>database and, with db columnames with special characters.
>
>Anybody can help me?
I wrote a simple test using mysql and tomcat to output special characters.
You find description and sources of my tests at
http://www.kk-software.fi/kalle/opensource.html
regards
Kaarle
>Thanks
>
>Carlos Godoy
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------
Kaarle Kaila
http://www.iki.fi/kaila
mailto:kaarle.kaila@iki.fi
tel: +358 50 3725844
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org