WordPress 中的编码问题(希伯来语 UTF8)
我有一个(朋友的)博客,我无法修复:
http://www.nivcalderon.com/
该网站的语言是希伯来语,但编码扰乱了输出,我找不到如何修复它。
我尝试将数据库排序规则更改为 utf8_general_ci。
我添加了这个:
define('DB_COLLATE', 'utf8_general_ci');
到 wp-config (还有这个:define('DB_CHARSET', 'utf8'); 但后来删除了它,因为它似乎没有解决问题)
还有什么想法可以做吗?
谢谢
I have a blog (of a friend) I am failing to fix:
http://www.nivcalderon.com/
The language of the website is Hebrew, but the encoding scrambles the output, and I can't find how to fix it.
I tried changing the DB colliation to be utf8_general_ci.
I added this:
define('DB_COLLATE', 'utf8_general_ci');
To the wp-config
(and also this: define('DB_CHARSET', 'utf8');
But removed it later, since it didn't seem to fix the problem)
Any ideas of what else to do ?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该问题是由于导入错误导致数据库包含双编码 utf-8 字符串而引起的。可以通过将表导出为 latin1 并将其导入为 UTF-8 来修复此问题。这不是 WordPress 的错误。
The issue is causing because of a bad import, which make the database to contain double-encoded utf-8 strings. It can be fixed by exporting the tables as latin1 and than importing it as UTF-8. This is not a WordPress fault.