我在Wordpress中使用一个插件,该插件在字段中存储一些html代码.
此列为中文字utf8_general_ci
当我想输出此信息时,所有特殊字符(例如“´…”和其他一些特殊字符)都将显示为黑色菱形,并在其中带有问号.
当插件显示此文本时,它是完美的.这是在头上:
当我在其他地方输出时,我脑子里有了这个,所有那些字符都丢失了:
字符正确存储在MYSQL中,我通过PHP这样输出
ob_start();?>
some html
some html
$details = ob_get_clean();
后来只是:
echo $details;
我已经读够了,总是提到字符集,但是我认为我还可以.
谢谢您的帮助!
编辑:添加完整示例
文字显示在WP中.正如我在评论中所说,这可能是由MS Word编辑器从MS Word复制/粘贴到Worpress中的.
8. Choose the verb to complete the sentence.
______ you ever _____ the proverb, “Time is gold”?
Has… heard…
Have… hear…
Have… heard…
像这样存储在数据库中(不要查看正确/正确的用户答案)
8. Choose the verb to complete the sentence.
______ you ever _____ the proverb, “Time is gold”?