Created
August 21, 2015 04:44
-
-
Save bjzhush/32bd70c0f40ce2cdc333 to your computer and use it in GitHub Desktop.
转换编码,超级好用的
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mb_convert_encoding($str, 'utf-8', 'GBK,UTF-8,ASCII'); | |
//可以用curl抓个GBK UTF8的来测试下 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment