[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
There are two new (as of MySQL version 4.1) character sets for storing
Unicode data:
ucs2
(the
UCS-2 Unicode character set) and utf8
(the
UTF8 encoding of the Unicode character set).
Temporary restriction: UCS-2 can't (yet) be used as a client
character set. That means that SET NAMES 'ucs2'
will not work.
Tip: To save space with UTF8, use VARCHAR
instead of CHAR
.
Otherwise, MySQL has to reserve 30 bytes for a CHAR(10) CHARACTER
SET utf8
column, because that's the maximum possible length.