亚洲语言的数据库字符集/unicode (UTF-8)
我对 PHP 中的语言支持设置有疑问。
我之前的供应商(共享主机)的使用情况很好
,现在我使用 Godaddy 的 VPS。
唯一的问题是,当我从我的 WordPress 中发布语言(例如泰语)时,它是可以的,但是当我进行一些设置(例如设置标语)时,
它将是一个问号,例如 ??????? ???
我去了数据库并查找了相同的内容,
因此我查看了排序规则,它在 UFT-8 上正确设置,我以前的提供商也有相同的设置。
我查看了我的 php.ini,它带有 iso-8859-1
然后我将其更改为 UFT-8
以查看这是否确实有帮助
,但仍然给了我相同的结果
是除了这两个之外还有什么需要配置,以获得将在数据库中发布的语言与我想在数据库中发布的语言相同。???
谢谢
I have a problem on the setting of the language support in the PHP.
Where it use to be fine from my previous provider (shared-host)
And now I'm on my VPS with Godaddy.
The only problem that when from my Wordpress if I post language for example like Thai language in the post its ok but when I do some setting such as set the tagline
it will be a question mark like ??????????
and I went to the database and look and find the samething
so I look at the collation and it was set correctly at UFT-8 from where my previous provider have the same.
and I look at my php.ini it was with iso-8859-1
then I changed it to UFT-8
to see if that is actually help
but then still giving me the same result
is there anything other than this two to configure in order to get the language where it will be post in the database same as the language that I wanted to post in the db.???
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试将以下内容添加到您的
wp-config.php
中:Try adding the following to your
wp-config.php
: