column in the database has to have a character set and collation for utf8. I.e.
CHARACTER SET utf8 COLLATE utf8_general_ci
2. The request before storing to the database has to be handled as UTF-8. I.e. needs a
request.setCharacterEncodi
line before any submitted parameters are read. This was the vital missing piece of the
jigsaw for me.
3. The response also needs to be handled as UTF-8. I.e. needs a
response.setContentType("t
line in all files handling the response. Not totally sure if this is required as one file
worked without it.
4. The character set and encoding need to be set on the database URL in the web.xml.
E.g.
<url>jdbc:mysql://localhost:
url>
For further info please visit:
http://bugs.mysql.com/bug.
Main Topics
Browse All Topics





by: karanwPosted on 2009-09-17 at 20:44:56ID: 25362822
Are you getting problem after storing into database?