Yii 1.1: chinese

中文编码集合类库
3 followers

中文编码集合类库

目前该类库可以实现,简体中文 <-> 繁体中文编码互换,简体中文、繁体中文 -> 拼音单向转换,简体中文、繁体中文 <-> UTF8 编码转换,简体中文、繁体中文 -> Unicode单向转换

Resources

Documentation

Requirements

  • Yii 1.1 or above

Installation

  • Extract the release file under protected/extensions

Usage

See the following code example:

Yii::import('application.extensions.chinese.JChinese');
$ch = new JChinese( 'GB2312', 'BIG5' );
echo $ch->convert('体育');

Change Log

December 7, 2009

  • Initial release.

Total 2 comments

#5233 report it
yiqing95 at 2011/09/25 09:38am
seems to not work?

error form JCHinese __destruct function , the code style is php4 , should rewrite the code.

#2244 report it
Trejder at 2010/12/01 07:00am
English description is missing! :(

Since Yii is an international framework (and so it's extensions) and English is de facto official spoken language of it's community, would you be so kind to rewrite this extension description (and the extensions itself, if this is necessary), so everyone around the world, not only Chinese-speaking developers will be able to use it? Thank you!

Leave a comment

Please to leave your comment.

Create extension