Skip to content

Instantly share code, notes, and snippets.

@kai101
Created November 12, 2015 02:44
Show Gist options
  • Save kai101/6c114fa1c70bda500997 to your computer and use it in GitHub Desktop.
Save kai101/6c114fa1c70bda500997 to your computer and use it in GitHub Desktop.
Check Hex Chinese character Encoding.
$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