【发布时间】:2015-02-01 17:26:34
【问题描述】:
【问题讨论】:
标签: php wordpress browser unicode
【问题讨论】:
标签: php wordpress browser unicode
感谢您在 StackOverflow 上发帖。尝试创建一个自定义的 wordpress 页面。就这样……
<?php
include('/wp_blog_header.php'); //change this to reflect the location of your wp_blog_header.php
get_header();
echo "Your CharSet is: ".bloginfo('charset');
get_footer();
?>
这将告诉您 wordpress 将您的字符集设置设置为什么。如果不是 UTF-8,则更改它以反映这一点(它与每种语言最兼容)。
或者,您也可以将此行添加到您的 wp-config.php
define('DB_CHARSET', 'utf8'); // force utf8
define('DB_COLLATE', 'utf8_general_ci'); // force collation
如果我提供了最佳解决方案,请将其标记为您问题的答案 :) 再次感谢您的发帖。
【讨论】: