- mb_convert_encoding: documentation ( source)
- var_dump: documentation ( source)
- hex2bin: documentation ( source)
- mb_check_encoding: documentation ( source)
<?php
var_dump(
mb_convert_encoding(
$bin = hex2bin("9dc8f1d78bc795afe3e0f844e0c0eef08d4df349"),
"UTF-8",
"SJIS-Mobile#DOCOMO"
),
mb_check_encoding($bin, "SJIS-Mobile#DOCOMO")
);