求php大侠解决zend studio8.0.1中的乱码有关问题

WBOY
Release: 2016-06-13 10:26:13
Original
654 people have browsed it

求php大侠解决zend studio8.0.1中的乱码问题
在zend studio8.0.1中新建一个php file为什么在已经设置了utf-8的情况下还是会出现乱码问题呢

------解决方案--------------------
在头部加上:
header("content-type:text/html;charset=utf-8");
------解决方案--------------------
实际上呢,我发现zd 和eclipse 都有这种情况,就是你设置了编码,但是他可能并没有正确的给你转换文件的编码。最好的方法是借助其他工具来转换,例如editplus notepad++ 啥的...
------解决方案--------------------
即使有时候借助了ed、not 还是出现这样的问题。。
------解决方案--------------------

探讨

即使有时候借助了ed、not 还是出现这样的问题。。

------解决方案--------------------
一般只要在 utf-8, 无bom 下就不会出现这种情况。 除非 你的是 iis服务器 加上 框架页面iframe
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!