utf8mb3 character set has these
Supports BMP characters only (no support for supplementary characters)
Requires a maximum of three bytes per multibyte character.
Applications that use UTF-8 data but require supplementary
character support should use
Section 10.9.1, “The utf8mb4 Character Set (4-Byte UTF-8 Unicode Encoding)”).
Exactly the same set of characters is available in
ucs2. That is,
they have the same
Historically, MySQL has used
utf8 as an
utf8mb3; in MySQL
utf8mb3 is used
exclusively in the output of
statements and in Information Schema tables when this
character set is meant.
At some point in the future
expected to become a reference to
To avoid ambiguity about the meaning of
utf8, consider specifying
utf8mb4 explicitly for character set
references instead of
You should also be aware that the
character set is deprecated and you should expect it to be
removed in a future MySQL release. Please use
utf8mb3 can be used in
SET clauses, and
COLLATE clauses, where
estonian_ci, and so forth. For example:
CREATE TABLE t (s1 CHAR(1)) CHARACTER SET utf8mb3; SELECT * FROM t WHERE s1 COLLATE utf8mb3_general_ci = 'x'; DECLARE x VARCHAR(5) CHARACTER SET utf8mb3 COLLATE utf8mb3_danish_ci; SELECT CAST('a' AS CHAR CHARACTER SET utf8mb4) COLLATE utf8mb4_czech_ci;
In statements such as
SHOW CREATE TABLE or
SELECT CHARACTER_SET_NAME FROM
COLLATION_NAME FROM INFORMATION_SCHEMA.COLUMNS,
character sets or collation names prefixed with
utf8mb3 is also valid (but deprecated) in
contexts other than
CHARACTER SET clauses.
SET NAMES 'utf8mb3'; /* and other SET statements that have similar effect */ SELECT _utf8mb3 'a';
For information about data type storage as it relates to multibyte character sets, see String Type Storage Requirements.