-
Notifications
You must be signed in to change notification settings - Fork 819
Use utf8mb4 instead of utf8 #1147
Copy link
Copy link
Closed
Description
hustoj/trunk/web/include/login-discuz.php
Line 10 in 43d45e5
| pdo_query("set names utf8"); |
建议改成
pdo_query("set names utf8mb4");
MySQL 的 utf8mb4 才是现行的 UTF-8 标准,而 MySQL 的 utf8 指的是旧版UTF-8标准(utf8mb3)。那个旧标准UTF-8只支持最多三个字节,而不支持四个字节的UTF-8字符,比如越南喃字、部分汉语方言用字和部分emoji等等。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels