Bug #39416 | mysql CLI cannot handle multi-byte character correctly | ||
---|---|---|---|
Submitted: | 12 Sep 2008 5:21 | Modified: | 12 Sep 2008 7:29 |
Reporter: | Mikiya Okuno | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S3 (Non-critical) |
Version: | Any | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[12 Sep 2008 5:21]
Mikiya Okuno
[12 Sep 2008 7:29]
Susanne Ebrecht
Mikiya, this is not a bug. You have to tell the system which encoding your environment is using. Therefor you have to change the variables character_set_client and character_set_result and character_set_connection to the encoding value of your environment. You can do it by using the SET NAMES command. If we don't have a matching character set for your environment encoding you have to change the environment encoding to a matching value and set the variables like this encoding. Generally, MySQL only support 3 byte UTF8 at the moment. There is a worklog for implementing 4 byte UTF8 for MySQL 6.0. Latin1 is only for Western Europe signs and don't support Asia signs at all.