Home >Backend Development >PHP Tutorial >php如何实现gbk和utf8的互转且无损?

php如何实现gbk和utf8的互转且无损?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:30:57898browse

php如何实现gbk和utf8的互转且无损。

回复内容:

php如何实现gbk和utf8的互转且无损。

iconv("UTF-8", "GB2312//IGNORE", $data)

Statement:
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