Home > php教程 > php手册 > PHP函数utf8转gb2312编码

PHP函数utf8转gb2312编码

WBOY
Release: 2016-06-13 12:34:39
Original
769 people have browsed it

今天,我太点儿低了!转换成功了看不到字符,以为用法有问题,查看源文件,居然是

中的乱码,导致标签变成了:乱七鼓拽?/title>,<title>后全部内容被拉到<title>中做头去了,还在群里喊了半天,发现是这的问题,气都气死了!!!<br>用ICONV函数:<br>iconv( "UTF-8", "gb2312" , "abc阳光123"); <p>据说这样好些,可以忽略转换时的错误!<br>iconv( "UTF-8", "gb2312//IGNORE" , "abc阳光123");</p>
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template