MySQL 5.0 FAQ: MySQL Chinese, Japanese, and Korean Character Sets
2892
•
B.11.8: [2896]
Of what issues should I be aware when working with Korean character sets in
MySQL?
•
B.11.9: [2896]
Why do I get
Incorrect string value
error messages?
•
B.11.10: [2897]
Why does my GUI front end or browser not display CJK characters correctly in my
application using Access, PHP, or another API?
•
B.11.11: [2898]
I've upgraded to MySQL 5.0. How can I revert to behavior like that in MySQL 4.0
with regard to character sets?
•
B.11.12: [2899]
Why do some
LIKE
[896]
and
FULLTEXT
searches with CJK characters fail?
•
B.11.13: [2899]
How do I know whether character
X
is available in all character sets?
•
B.11.14: [2900]
Why do CJK strings sort incorrectly in Unicode? (I)
•
B.11.15: [2901]
Why do CJK strings sort incorrectly in Unicode? (II)
•
B.11.16: [2902]
Why are my supplementary characters rejected by MySQL?
•
B.11.17: [2902]
Shouldn't it be “CJKV”?
•
B.11.18: [2902]
Does MySQL allow CJK characters to be used in database and table names?
•
B.11.19: [2903]
Where can I find translations of the MySQL Manual into Chinese, Japanese, and
Korean?
•
B.11.20: [2903]
Where can I get help with CJK and related issues in MySQL?
Questions and Answers
B.11.1: What CJK character sets are available in MySQL?
The list of CJK character sets may vary depending on your MySQL version. For example,
the
eucjpms
character set was not supported prior to MySQL 5.0.3. However, since the
name of the applicable language appears in the
DESCRIPTION
column for every entry in the
INFORMATION_SCHEMA.CHARACTER_SETS
table, you can obtain a current list of all the non-Unicode
CJK character sets using this query:
mysql>
SELECT CHARACTER_SET_NAME, DESCRIPTION
->
FROM INFORMATION_SCHEMA.CHARACTER_SETS
->
WHERE DESCRIPTION LIKE '%Chinese%'
->
OR DESCRIPTION LIKE '%Japanese%'
->
OR DESCRIPTION LIKE '%Korean%'
->
ORDER BY CHARACTER_SET_NAME;
+--------------------+---------------------------+
| CHARACTER_SET_NAME | DESCRIPTION |
+--------------------+---------------------------+
| big5 | Big5 Traditional Chinese |
| cp932 | SJIS for Windows Japanese |
| eucjpms | UJIS for Windows Japanese |
| euckr | EUC-KR Korean |
| gb2312 | GB2312 Simplified Chinese |
| gbk | GBK Simplified Chinese |
| sjis | Shift-JIS Japanese |
| ujis | EUC-JP Japanese |
+--------------------+---------------------------+
8 rows in set (0.01 sec)
(See
Section 19.1, “The
INFORMATION_SCHEMA CHARACTER_SETS
Table”
, for more information.)
MySQL supports the two common variants of the GB (Guojia Biaozhun, or National Standard, or
Simplified Chinese) character sets which are official in the People's Republic of China:
gb2312
and
gbk
. Sometimes people try to insert
gbk
characters into
gb2312
, and it works most of the time
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...