- mb_convert_encoding: documentation ( source)
- var_dump: documentation ( source)
- hex2bin: documentation ( source)
- bin2hex: documentation ( source)
- mb_check_encoding: documentation ( source)
<?php
var_dump(
$conv = mb_convert_encoding(
$bin = hex2bin("0001f1e8"),
"UTF-8-Mobile#KDDI-A",
"UCS-4BE"
),
mb_check_encoding($bin, "UTF-8-Mobile#KDDI-A"),
bin2hex(mb_convert_encoding($conv, "UTF-8-Mobile#KDDI-A", "UTF-8"))
);