- 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("8ffbce8fefc5a5c88fafaca6fedcf7"),
"UTF-8",
"EUC-JP-2004"
),
mb_check_encoding($bin, "EUC-JP-2004"),
bin2hex(mb_convert_encoding($conv, "EUC-JP-2004", "UTF-8"))
);