About MYSQLutf8mb4 string set. The table structure is as follows: Code {code...} is? For example, solve the problem.
About MYSQL utf8mb4 string set.
The table structure is as follows:
The following code:
$ Db = new mysqli ('X', 'XXX', 'xxxxx'); $ db-> select_db ('XXX '); $ db-> set_charset ('utf8mb4'); // Here is an emoji expression $ contents = <
Query ($ SQL); print_r ($ db-> error_list); echo "\ t \ n"; exit ();
However?For example:
Solve the problem.
Reply content:
About MYSQL utf8mb4 string set.
The table structure is as follows:
The following code:
$ Db = new mysqli ('X', 'XXX', 'xxxxx'); $ db-> select_db ('XXX '); $ db-> set_charset ('utf8mb4'); // Here is an emoji expression $ contents = <
Query ($ SQL); print_r ($ db-> error_list); echo "\ t \ n"; exit ();
However?For example:
Solve the problem.
This is correct.
To put it down, the difference between utf8mb4 and utf8 is that utf8 uses three-bit bytecode to store data, while utf8mb4 uses four-bit bytecode to store data.
An emoji is a four-byte code that is escaped from the previous paragraph. it is an unreadable character, so "?" is displayed on the database client.
The emoji expression is displayed in the area where the front-end supports emoji.
Determine whether the client supports utf8mb4. it is best to use set names.