MySQL Forums
Forum List  »  Knowledge Base

String convertion of special characters
Posted by: Francesco Mezzina
Date: April 06, 2007 09:22AM

Hello,
I use MySql + java environment. My JDBC driver is: mysql-connector-java-3.1.7-bin.jar.
In my DB I have this information :
"L’Hotel Novotel Vienna Ovest.."

When I try to read this filed from Java code:
PreparedStatement stmt;
Object[] res = new Object[15];
ResultSet rs = stmt.executeQuery();
if (rs.next()) {
res[0] = rs.getString("TEXT");

return this string : "L?Hotel Novotel Vienna Ovest.." or "L
Hotel Novotel Vienna Ovest..".

How can I do to not convert these special characters?

Thanks & Regards,
Francesco

Options: ReplyQuote


Subject
Views
Written By
Posted
String convertion of special characters
4521
April 06, 2007 09:22AM


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.