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

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

WBOY
Release: 2016-06-06 20:30:57
Original
869 people have browsed it

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

回复内容:

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

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

Related labels:
php
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