-
Notifications
You must be signed in to change notification settings - Fork 11
wangchll/PHP-Unicode-Convert
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
<?php /** * Demo * * @author wang chong([email protected]) * @link http://www.wangchong.org * @version 1.0.0 (2011-04-15) * @package php-Unicode */ include 'unicode.class.php'; $str = '这是一个测试Demo!~![email protected]'; $convert = new Unicode(); //convert to Unicode var_dump($str = $convert->str_to_unicode($str, 'UTF-8')); //convert to UTF-8 var_dump($str = $convert->str_from_unicode($str, 'UTF-8'))
About
将GBK,UTF8字符串转化为Unicode编码的类库——php string to unicode and unicode to gbk or utf-8
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published