PHP Chinese Code Collection Class Library

Source: Internet
Author: User
At present, the class library can be implemented, Simplified Chinese <-> Traditional Chinese code interchange, Simplified Chinese, Traditional Chinese-> pinyin one-way conversion,
Simplified Chinese, Traditional Chinese <-> UTF8 encoding conversion, Simplified Chinese, Traditional Chinese-> Unicode one-way conversion

@ author Hessian (solarischan@21cn.com)
@ VERSION 1.5
@ All rights reserved Hessian/netis
@ Use of the authorized GPL (cannot be applied to any commercial use, without the consent of the author to modify the code, but the revised code must be issued under the GPL Agreement)
@ Special Acknowledgment unknow (simplified conversion Code fragment)
@ Starting 2003-04-01
@ Last modified 2003-06-06
@ Access Public

Update records

Ver 1.7 2005-07-26
Modified the bug caused by the while loop. This bug will handle the error when the last character of the string is "0".
Methods affected: CHStoUTF8 (), Chstounicode ()

Ver 1.6 2005-05-16
The constructor adds a parameter so that the user can easily set the profile path when used

Ver 1.5 2003-06-06
Increase the UTF8 conversion to GB2312, BIG5 functions.

Ver 1.4 2003-04-07
increase when converting HTML to True, you can change the value of CharSet.

Ver 1.3 2003-04-02
Increase the conversion of traditional Chinese to phonetic function.

Ver 1.2 2003-04-02
A function that merges simplified and traditional Chinese into UTF8.
Modify the Simplified Chinese to phonetic function, the return value changed to a string, the pinyin of each Chinese character separated by a space
Add the ability to convert Simplified Chinese to UNICODE.
Add the ability to convert traditional Chinese to UNICODE.

Ver 1.1 2003-04-02
Add the OpenFile () function to support opening local and remote files.
Increase the conversion of Simplified Chinese to UTF8 function.
Increase the functionality of traditional Chinese conversion to UTF8.

Ver 1.0 2003-04-01
A collection of Chinese Simplified, Chinese traditional corresponding to a variety of code Interchange Class library has been preliminarily completed.

</

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.