使用mysql的泰语插入问题

时间:2016-10-17 10:10:18

标签: php mysql

我有泰国字符串98/10 ม.8 ถนนริมน้ำ 如果我可以插入此字符串,则会像98/10 ม.8��ถนนริมน้ำ

一样插入

我用过

mysqli_query($conn, "SET NAMES tis620");
mysqli_query($conn, "SET character_set_results=tis620");
mysqli_query($conn, "SET character_set_client=tis620");
mysqli_query($conn, "SET character_set_connection=tis620");

1 个答案:

答案 0 :(得分:0)

尝试使用字符集utf8_general_ci进行设置。 或者使用utf8_general_ci设置数据库列和表。 check how to set character set using query