【发布时间】:2015-11-18 13:02:55
【问题描述】:
我必须将客户端 wordpress 移动到 Strato 服务器。
到目前为止,一切都解决了。但所有打字都用德语变音。所以 ü 变成了 ?。 我发现这与字符集有关。
数据库的联合也是utf8mb4_unicode_ci。
这是我在页面上的 html 标头:
Connection:Keep-Alive
Content-Type:text/html; charset=UTF-8
Date:Wed, 18 Nov 2015 12:58:52 GMT
Keep-Alive:timeout=3, max=100
Link:<https://mydomain.de/>; rel=shortlink
Server:Apache/2.2.31 (Unix)
Transfer-Encoding:chunked
X-Pingback:http://mydomain.de/xmlrpc.php
X-Powered-By:PHP/5.5.29
我现在尝试在 php.ini 中使用defaul_charset=UTF-8,但这并没有带来任何改变。
我做错了什么?在 phpMyAdmin 中,我可以看到 öäüß 拼写正确。
【问题讨论】:
标签: php mysql wordpress character-encoding