Home  >  Article  >  Backend Development  >  PHP编码变换类3

PHP编码变换类3

WBOY
WBOYOriginal
2016-06-13 10:54:32935browse

PHP编码转换类3

PHP编码转换类请下载附件,包含文件:

?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

?

使用方法:

$Conv=new converter;$String='GB2312转BIG(简转繁体)';$String=$Conv->convert('GB','BIG',$String);$String='BIG转GB2312(繁转简体);$String=$Conv->convert('BIG','GB',$String);$String='GBK转UTF';$String=$Conv->convert('GBK','UTF',$String);$String='BIG转UTF';$String=$Conv->convert('BIG','UTF',$String);$String='UTF转GBK';$String=$Conv->convert('UTF','GBK',$String);$String='UTF转BIG';$String=$Conv->convert('UTF','BIG',$String);

?

支持GBK,UTF,BIG5和unicode等编码互转,以及汉字转拼音。

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