中文编码集合类库
目前该类库可以实现,简体中文 <-> 繁体中文编码互换,简体中文、繁体中文 -> 拼音单向转换,简体中文、繁体中文 <-> UTF8 编码转换,简体中文、繁体中文 -> Unicode单向转换
protected/extensionsSee the following code example:
Yii::import('application.extensions.chinese.JChinese'); $ch = new JChinese( 'GB2312', 'BIG5' ); echo $ch->convert('体育');
Total 2 comments
error form JCHinese __destruct function , the code style is php4 , should rewrite the code.
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 login to leave your comment.