php codeigniter框架如何改变视图页面编码语言英文为中文

WBOY
Release: 2016-06-13 11:50:22
Original
926 people have browsed it

php codeigniter框架怎么改变视图页面编码语言英文为中文
我是新手刚学php 用codeigniter框架练习把页面的内容有英文改为中文后调试网站发现输出的是乱码,哪位大神知道怎么解决
------解决方案--------------------
应该是浏览器编码问题,如果你打开的是.html文件在head标签里面加下面一句话




如果打开的是php页面
在文件开头加
header("Content-type: text/html; charset=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