dcsimg
Problem with UTF-8 and JSP
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Nenad_Bosanac
Posted On:   Monday, March 20, 2006 10:01 AM

I have problem with UTF-8 character set. I use MySQL 5 and Tomcat 5.5.9.I use NetBeans for programinnig in Java. I made one database and is in UTF8,also all my JSP pages are set to UTF8 encoding,and also all HTML are set to UTF8. When i put š,đ,č,ć,ž character date in database directly from MySQL Query tool and and display that data in jsp pages i see all character ok, but when i use jsp pages to insert č,đ,ž,ć character and want to display them i got some strange characters. Also i put my IE browser to UNICODE UTF8 encoding. How can i see correct š,ć,đ,ž,č in my browser correct? Thanks    More>>

I have problem with UTF-8 character set.
I use MySQL 5 and Tomcat 5.5.9.I use NetBeans for programinnig
in Java.
I made one database and is in UTF8,also all my JSP pages are set to
UTF8 encoding,and also all HTML are set to UTF8.
When i put š,đ,č,ć,ž character date in database directly from MySQL Query tool and
and display that data in jsp pages i see all character ok, but
when i use jsp pages to insert č,đ,ž,ć character and want to display them
i got some strange characters.
Also i put my IE browser to UNICODE UTF8 encoding.
How can i see correct š,ć,đ,ž,č in my browser correct?
Thanks

   <<Less

Re: Problem with UTF-8 and JSP

Posted By:   Jani_Kaarela  
Posted On:   Thursday, March 23, 2006 02:54 AM


I'm only guessing, but it could be that your connection has the wrong encoding. See the reference page for the JDBC driver (I'm assuming you're using MySQL's own Connector/J), specifically useUnicode and characterEncoding configuration properties are probably relevant.

About | Sitemap | Contact