Documentation Home
MySQL 9.4 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 41.2Mb
PDF (A4) - 41.3Mb
Man Pages (TGZ) - 262.8Kb
Man Pages (Zip) - 368.8Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb


MySQL 9.4 Reference Manual  / ...  / Character Sets, Collations, Unicode  / Unicode Support  /  The ucs2 Character Set (UCS-2 Unicode Encoding)

12.9.4 The ucs2 Character Set (UCS-2 Unicode Encoding)

Note

Theucs2 character set is deprecated; expect it to be removed in a future MySQL release. You should useutf8mb4 instead.

In UCS-2, every character is represented by a 2-byte Unicode code with the most significant byte first. For example:LATIN CAPITAL LETTER A has the code0x0041 and it is stored as a 2-byte sequence:0x00 0x41.CYRILLIC SMALL LETTER YERU (Unicode0x044B) is stored as a 2-byte sequence:0x04 0x4B. For Unicode characters and their codes, please refer to theUnicode Consortium website.

Theucs2 character set has these characteristics:

  • Supports BMP characters only (no support for supplementary characters)

  • Uses a fixed-length 16-bit encoding and requires two bytes per character.