Bug #61483 | connector/J not correctly handling Korean characters | ||
---|---|---|---|
Submitted: | 10 Jun 2011 16:59 | Modified: | 10 Jun 2011 18:01 |
Reporter: | Peter Turk | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | MySQL 5.5.13, Connector/J 5.1.16 | OS: | Any (Windows XP, Mac OS X) |
Assigned to: | CPU Architecture: | Any | |
Tags: | connector, utf8 |
[10 Jun 2011 16:59]
Peter Turk
[10 Jun 2011 17:25]
Mark Matthews
Connector/J only sends characters in UTF-8 if either the characterEncoding property in your connection string has been set to "UTF-8", or if character_set_server on MySQLd is set to "UTF-8", which essentially triggers the "SET NAMES ..." call. You are using "SET NAMES" in the mysql client, and workbench sets the connection to UTF-8 by default. Are either of the above conditions true in your testcase? If not, does setting them as described fix this issue?
[10 Jun 2011 18:01]
Peter Turk
MySQL staff sent me this message: Connector/J only sends characters in UTF-8 if either the characterEncoding property in your connection string has been set to "UTF-8", or if character_set_server on MySQLd is set to "UTF-8", which essentially triggers the "SET NAMES ..." call. I added "characterEncoding=utf8" to my connection string, and the problem disappeared. Thanks.