WordPress Charset内码问题在升级到版本2.2以后
升级到Wordpress版本2.2的WordPress blogs也许遇到奇怪的字符集(charset)内码问题,几个字符撇号(’),引号(")和特别是连字号或者破折号(-)被显示,奇怪的字符例如†™或简单地当问号(?) 当岗位输出到网页。 您大概怀疑,问题是由字符半新的编码方法造成的 支持数据库核对和字符集设置的WordPress 2.2 在WordPress设置文件。
因为大到WordPress ver 2.1.3,几乎所有WordPress数据库使用latin1字符集和latin1_swedish_ci核对,被创造了错误发生。 起点WordPress v2.2, WordPress在wpconfig.php文件允许用户使用DB_CHARSET和DB_COLLATE价值定义数据库字符集和核对。 以这些价值设置到另一个内码, WordPress假设,数据库的确使用charset和核对,它不是盒为现有的WordPress设施的地方。 如此,如果您升级WordPress到2.2使用缺省wpconfig.php或者手工修改文件包括新的可变物,否则升级通过默认情况下使用自动地更新wpconfig.php文件包括这二个定义价值设置作为Unicode UTF-8的Fantastico,您将需要去除这些定义解决字符内码错误。
打开并且编辑您的WordPress wpconfig.php文件。 然后找出以下二条线:
定义(’ DB_CHARSET’, `utf8 ′);
定义(’ DB_COLLATE’”);
您能简单地删除这2条线,或者请从最重要去除utf8做他们如下所示:
定义(’ DB_CHARSET’”);
定义(’ DB_COLLATE’”);
没有被设置的charset和核对价值, WordPress将下跌回到老缺省,匹配数据库的latin1。
一种可能的更好的解答是 转换Wordpress数据库成UTF8 Unicode.
重要: 这是现状提供,不用保单的机器翻译的页。 计算机翻译也许是难了解。 参见 原始的英国文章 每当可能。
分享并且贡献或者得到技术支持并且帮助在 我的数字式生活论坛.
相关文章
- 如何转换WordPress数据库的字符集和核对
- WordPress的下载早先或老版本
- 如何定做,修改或改变WordPress数据库连接错误页
- Download WordPress 2.3 Release Candidate 1 (RC1) with Tags Support
- Integrate WordPress including Comments with bbPress Forum using bbSync
- WordPress 2.1.1 Critical Security Alert - Download Upgrade to 2.1.2
- Automatically Update WordPress to Latest Version with Automatic Upgrade Plugin (WPAU)
- Disable Auto Go To (Jump) To Read More Tag
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working
- Disable and Turn Off Post Revisions Tracking in WordPress 2.6 or Above
August 24th, 2008 11:20
Thanks! Saved me a lot of time.
August 23rd, 2008 05:24
thanks
June 18th, 2008 08:42
Isn’t UTF8 much better? Why would you limit yourself to Latin1 just because it used to be the default?
June 6th, 2008 20:56
Just wanted to say: this had afflicted me for months. Never found a workable solution. Stumbled on your site today and it worked perfectly. Thanks so much!
February 19th, 2008 05:04
Hi, thanks for doing this. it’s the only thing I’ve found. I remove the utf8 and a lot of my posts still have the question marks. any ideas what I may need to do?
February 17th, 2008 03:44
thanks for the help, it worked out for me
January 5th, 2008 06:55
Thx a lot!
You saved me hours!