0

I have a problem while inserting data from java jdbc to MySQL database, from a generated .jar file.

"Ñ" characters turns '?' in the table.

Things I tried without good results:

  • Adding useUnicode=yes&characterEncoding=utf8 in drivermanager URL
  • Changing character set to utf8 anD collation to utf8_unicode_ci

When I run the program in Eclipse IDE with ISO-8859-1 configuration works OK and put the correct characters into database, but when I run the .jar file in my system (Ubuntu 16 with UTF-8), '?' characters appears instead of 'Ñ'in the MySQL database.

Is there any solution? (I know is possible that this question will be a duplicated question, but other questions I found they haven't worked for me)

SirGuacamole
  • 117
  • 9

0 Answers0