Created
November 12, 2015 02:44
-
-
Save kai101/6c114fa1c70bda500997 to your computer and use it in GitHub Desktop.
Check Hex Chinese character Encoding.
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
$c = "样本平均价"; | |
foreach(mb_list_encodings() as $en){ | |
echo $en.' '; | |
echo bin2hex(mb_convert_encoding($c, $en)); | |
echo "\r\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment