>  기사  >  백엔드 개발  >  PHP编码变换类3

PHP编码变换类3

WBOY
WBOY원래의
2016-06-13 10:54:32937검색

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等编码互转,以及汉字转拼音。

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.