- 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("1b284200"),
"UTF-8",
"ISO-2022-JP-MS"
),
mb_check_encoding($bin, "ISO-2022-JP-MS"),
bin2hex(mb_convert_encoding($conv, "ISO-2022-JP-MS", "UTF-8"))
);