Thank you for the reply.
the part of the code is the following:
try
{
Statement stmt;
ResultSet rs;
Class.forName(" com.mysql.jdbc. Driver");
String url ="jdbc:mysql ://localhost:3306/users?useUnicod e=true&char acterEncoding=U TF-8&autoRecon nect=true";
Connection con =(Connection) DriverManager.g etConnection(ur l,"root",...
User Profile
Collapse
-
Insert to a database using java: problem with greek characters
I'm writing a java programme, which connects to a database in my computer(using jdbc). The database is allowed to use greek characters and I can check that, because when I use a "select" query, the text appears as it should. But when I try to insert new data, instead of greek characters, the result in the database is only some questionmarks. Where is the problem? (I've already defined the collation as utf-8)
No activity results to display
Show More
Leave a comment: