Home > Backend Development > PHP Tutorial > phpcms后台修改的文字,前台显示乱码,咋回事

phpcms后台修改的文字,前台显示乱码,咋回事

WBOY
Release: 2016-06-13 12:27:31
Original
1452 people have browsed it

phpcms后台修改的文字,前台显示乱码,怎么回事,
在网上查了下,说是模板页和后台数据库字符编码不一致,但是我这明明都是utf-8的格式啊
------解决思路----------------------
模板中加入:
------解决思路----------------------
噢?那你说是什么问题?一点信息都不提供!

乱码肯定是字符集问题(把汉字截断了除外)
字符集问题归结为:
文件保存时的字符集与要求的不符
程序的字符集声明与实际使用的字符集不符
与数据库交互时声明的字符集与实际需要不符(MySQL是utf8而不是utf-8)
数据库字段为非宽字符集,无法完成字符集转换
....

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template