Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Problem with the encoding in connection with the access to a database

Corinna Godowitsch
1 decade ago Aug 30, 2012 5:34am
Jonatan Kronqvist
1 decade ago Aug 31, 2012 10:58am

Hi,

It's kind of hard to say what the problem is, as you do not specify *how* you're connecting to the database. If you're using JDBC to connect to your MySQL server, make sure that the Connection's charset is UTF-8. You can do this by specifying it in the connection URL like so:

jdbc:mysql://localhost:3306/myDB?characterEncoding=utf8

HTH,
/Jonatan

Corinna Godowitsch
1 decade ago Sep 03, 2012 6:36am