Home > Backend Development > PHP Tutorial > How to convert gbk encoding to utf8 format_PHP tutorial

How to convert gbk encoding to utf8 format_PHP tutorial

WBOY
Release: 2016-07-20 11:03:40
Original
1097 people have browsed it

apache character set GB 2312
mysql character set GBK
Now we want to extract information (GBK) from mysql and write it into XML
The encoding format in XML is UTF-8
So, how to convert GBK Encode to UTF8? ?
Detailed introduction:
A while ago I saw Mr. qiushuiwuhen’s article about the conversion of gbk, unicode, and big5
But there were some minor problems
So I designed a character conversion The class has corrected some deficiencies and added some functions. In the future, I will continue to expand this class to support more character sets.
Added the following points:
unicode->gbk symbol part Convert
Euro symbol (

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445257.htmlTechArticleapache character set GB 2312 mysql character set GBK Now we need to extract the information (GBK) from mysql and write it into XML The encoding format in XML is UTF-8. So, how to encode GBK into UTF8? ? Detailed introduction...
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