Home > Backend Development > PHP Tutorial > 为什么字符编码一半是简体中文,一半是utf-8

为什么字符编码一半是简体中文,一半是utf-8

WBOY
Release: 2016-06-23 14:28:19
Original
1020 people have browsed it


要怎么改成utf-8的


回复讨论(解决方案)

什么意思?请说清楚点

什么意思?请说清楚点
就是我在浏览器里看效果时有一部分要用简体中文才能查看,一部分要用utf-8才能查看,所以我无论用简体中文或utf-8查看都有一部分是乱码

应该是模板或框架内两个文件(多数是include进来的)的编码不同所致,找到其中之一,选择编码另存

所有文件保存时的编码要统一,而且要和HTML的Header信息里的编码一致。

把文件统一改成相同编码。

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