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.

重要: 这是现状提供,不用保单的机器翻译的页。 计算机翻译也许是难了解。 参见 原始的英国文章 每当可能。

分享并且贡献或者得到技术支持并且帮助在 我的数字式生活论坛.


32 Responses to “WordPress Charset Encoding Problem After Upgrading to Version 2.2”

Pages: [2] 1 » Show All

  1. Ates Goral
    August 24th, 2008 11:20
    32

    Thanks! Saved me a lot of time.

  2. Rodrigo
    August 23rd, 2008 05:24
    31

    thanks

  3. Endolith
    June 18th, 2008 08:42
    30

    Isn’t UTF8 much better? Why would you limit yourself to Latin1 just because it used to be the default?

  4. Tom Clarke
    June 6th, 2008 20:56
    29

    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!

  5. Josh
    February 19th, 2008 05:04
    28

    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?

  6. Marthin
    February 17th, 2008 03:44
    27

    thanks for the help, it worked out for me :)

  7. Bruno Silva
    January 5th, 2008 06:55
    26

    Thx a lot!
    You saved me hours!

Pages: [2] 1 » Show All

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


New Articles

Incoming Search Terms for the Article

wordpress charset - wordpress encoding - charset wordpress - wordpress utf8 - wordpress utf-8 - wordpress DB_COLLATE - wordpress change charset - wordpress encoding problem - wordpress weird characters - wordpress character encoding - wordpress apostrophes - all - utf-8 wordpress - utf8 wordpress - DB_CHARSET Wordpress - encoding wordpress - Charset Encoding - rendering apostrophe in wordpress - problem with Iphone after upgrading to version 2 - wordpress DB_CHARSET - wordpress utf - wordpress 2.6 charset - wordpress charset problem upgrade - DB_COLLATE wordpress - wordpress 2.6 charset problema - wordpress korean - remove cech characters utf8 - Windows japanese charset encoding problem characters - php charset encoding utf - wordpress change encoding - "WordPress" "charset" - wordpress character support - wordpress encoding error - wordpress encoding collation - wordpress charset problem - encoding method used in the wordpress for password - wordpress upgrade character encoding problem - wordpress strange characters - charset - wordpress utf 8 - change wordpress encoding - wordpress upgrade charset - wordpress bilingual post korean - wordpress text encoding problem - info about UTF8&a - norwegian characters wordpress - wordpress 2.6 charset error - utf-8 wordpress 2.6 - wordpress+charset - wordpress nextpage multilingual -