Home >Backend Development >PHP Tutorial >How to convert gbk encoding to utf8 format_PHP tutorial
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 (