PHP Code Transformation Class 3

Source: Internet
Author: User
PHP Code Conversion Class 3

PHP 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
/tables/gb-big5.table
/tables/gbk2py. Table
/tables/gbk2uni. Table
/tables/gb-unicode.table
/tables/uni2big. Table
/TABLES/UNI2GBK. Table

?

How to use:

$Conv =new Converter; $String = ' GB2312 turn BIG (simple to Traditional) '; $String = $Conv->convert (' GB ', ' BIG ', $String); $String = ' Big turn GB2312 (simplified), $String = $Conv->convert (' BIG ', ' GB ', $String); $String = ' gbk to UTF '; $String = $Conv->convert (' GBK ', ' utf ', $String); $String = ' big turn UTF '; $String = $Conv->convert (' big ', ' utf ', $String); $String = ' utf to GBK '; $String = $Conv->convert (' utf ', ' GBK ', $String); $String = ' utf turns BIG '; $String = $Conv->convert (' utf ', ' BIG ', $String);

?

Support Gbk,utf,big5, Unicode and other encodings, as well as Chinese pinyin.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.