Home > Backend Development > PHP Tutorial > UTF-8转GBK编码有关问题,有什么好的解决方案

UTF-8转GBK编码有关问题,有什么好的解决方案

WBOY
Release: 2016-06-13 12:46:53
Original
1070 people have browsed it

UTF-8转GBK编码问题,有什么好的解决方案?
iconv需要加 IGNORE 参数,才能完成转换,不然会出错终止,而 mb_convert_encoding,是可以完成转换,但是转换出来的文件,有时候会出现中文注释替换成???。
我开发的系统是UTF-8版本的,发布的时候需要转换出一个GBK版本,没有好的解决方案,求高手帮忙。

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