PHP encoding conversion class 3PHP encoding conversion class please download the attachment, including the file :? Converter. class. php/tables/BIG2GB. Table/tables/BIG2UNI. Table/tables/big5-unicode.table/tables/GB2BIG. Table PHP encoding conversion class 3
For the PHP code conversion class, download the attachment, including the file:
? Converter. class. php
/Tables/BIG2GB. Table
/Tables/BIG2UNI. Table
/Tables/big5-unicode.table
/Tables/GB2BIG. Table
/Tables/gb-big5.table
/Tables/GBK2PY. Table
/Tables/GBK2UNI. Table
/Tables/gb-unicode.table
/Tables/UNI2BIG. Table
/Tables/UNI2GBK. Table
?
Usage:
$ Conv = new converter; $ String = 'gb2312 to BIG (simplified to traditional Chinese) '; $ String = $ Conv-> convert ('GB', 'Big ', $ String); $ String = 'Big to GB2312 (traditional to simplified); $ String = $ Conv-> convert ('Big ', 'GB', $ String ); $ String = 'gbk to utf'; $ String = $ Conv-> convert ('gbk', 'utf', $ String); $ String = 'Big to utf '; $ String = $ Conv-> convert ('Big ', 'utf', $ String); $ String = 'utf to gbk '; $ String = $ Conv-> convert ('utf', 'gbk', $ String); $ String = 'utf to BIG '; $ String = $ Conv-> convert ('utf', 'Big ', $ String );
?
Supports conversion of GBK, UTF, BIG5, unicode, and Chinese characters to pinyin.