Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个(朋友的)博客我无法修复:
http://www.nivcalderon.com/
该网站的语言是希伯来语,但编码扰乱了输出,我找不到如何解决它。
我尝试将数据库校对更改为 utf8_general_ci。
我添加了这个:
define('DB_COLLATE', 'utf8_general_ci');
到 wp-config (还有这个:define('DB_CHARSET', 'utf8'); 但后来删除了它,因为它似乎没有解决问题)
有什么其他的想法吗?
谢谢
该问题是由于导入错误导致的,这使数据库包含双编码的 utf-8 字符串。可以通过将表导出为 latin1 并将其导入为 UTF-8 来修复它。这不是 WordPress 的错误。