mysql-tomcat-utf-8
Posted by: atmuc
Date: April 15, 2005 01:06AM

i have problem with reading utf-8 encoded tables. values come with latin1 encoding. if i convert them to utf-8 it is ok. i used

DriverManager.getConnection("jdbc:mysql://localhost/db?user=user&password=pss&useUnicode=true&characterEncoding=latin5");

if i convert what i get like;

String count = new String(rs.getString("productcategoryname").getBytes("ISO-8859-1"),"UTF-8");

result is as expected. how can i correct this problem without converting every string?

Options: ReplyQuote


Subject
Written By
Posted
mysql-tomcat-utf-8
April 15, 2005 01:06AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.