Error inserting certain UTF-8 characters into MySql database [message #1690238] |
Wed, 25 March 2015 20:19  |
Eclipse User |
|
|
|
Hi all,
I have some Lithuanian strings that can't be inserted in a MySQL
database via EclipseLink JPA. I have the following string: "Ukmergės
kel. Užubalių k.". The database gets "Ukmerg?s kel. Užubali? k.". Since
I can insert this string into the database via an INSERT command (with a
database tool) correctly, I assume that the connection isn't set up
right. The JDBC string looks like follows:
javax.persistence.jdbc.url=jdbc\:mysql\://localhost/mystrangedb?useUnicode=yes&characterEncoding=UTF-8
I've checked the string with debug view (in Eclipse). There it was also
correct. Is there any extra setting for Unicode encoding in EclipseLink?
Any help would be appreciated.
Regards,
Ralf.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02805 seconds