admin管理员组文章数量:1122832
I am working on a website where I am using a custom template.
My site having German character. When I use the visual editor(without template) it displays perfectly. Link
But when I am using a custom template for static content it won't show German characters. Link
I am working on a website where I am using a custom template.
My site having German character. When I use the visual editor(without template) it displays perfectly. Link
But when I am using a custom template for static content it won't show German characters. Link
Share Improve this question asked Jul 18, 2017 at 14:13 Dhaval PanchalDhaval Panchal 1114 bronze badges1 Answer
Reset to default 1Maybe it is caused by commenting out the charset meta tag? You should have this in your header:
<meta charset="utf-8" />
You can see in your source that this meta tag is commented out - maybe while debugging this problem.
<!--<meta charset="UTF-8">-->
Additionally you could check if your database settings are set to utf8_general_ci or the recently by Wordpress implemented standard utf8mb4_unicode_ci (COLLATE) in phpmayadmin.
EDIT: You could as well check if your templates are saved as utf8 and insert the content by first pasting it into an text editor that removes unvisible formats. Sometimes if you copy text from a pdf file you can have issues with some characters.
本文标签: character encoding problem in custom template
版权声明:本文标题:character encoding problem in custom template 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736310052a1934239.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论