WordPress 中的编码问题(希伯来语 UTF8)

发布于 2024-09-01 09:46:16 字数 350 浏览 1 评论 0原文

我有一个(朋友的)博客,我无法修复:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

城歌 2024-09-08 09:46:16

该问题是由于导入错误导致数据库包含双编码 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文