mysql - 中文字符的 Unicode 字符问题

标签 mysql unicode character-encoding cjk

我在向 mysql 数据库插入一些汉字时遇到问题。它可以在我的本地计算机上运行,​​但不能在服务器计算机上运行。

不知道为什么,请帮忙。

谢谢! enter image description here

最佳答案

可能服务器PC不支持UTF-8字符集。引用:http://forums.mysql.com/read.php?39,27011,27361#msg-27361http://dev.mysql.com/doc/refman/5.1/en/faqs-cjk.html

执行SHOW CREATE TABLE table_name;在本地 PC 和服务器 PC 上。检查本地 PC 上定义的字符集和排序规则,并在服务器 PC 中更改相同的字符集和排序规则。

关于mysql - 中文字符的 Unicode 字符问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7345495/

相关文章:

php - MySQL 按一列对行进行分组并按另一列排序

php - 每个表单项作为 mySql 表中的新行

mysql - 如何在嵌套的两级子查询中使用外表?

python - python中的正则表达式和unicode utf-8?

python - 无法将干净的 unicode 文本插入 pandas 中的 DataFrame

unicode - 为什么当我使用 (Apple 标志)unicode 时 Julia 返回 "\uf8ff"?

mysql - 如何将MySQL数据库拆分到多个主机,保留远程引用

Python3、pyodbc、SQL Server : Supplying Unicode and ANSI string as needed

Perl iso-8859-1 字符串比较

mysql - perl lwp useragent和mysql数据下载和更新字符集麻烦