- 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("e4d4bd67c565d8fdf8d5b162c7f8b7acca43"),
"UTF-8",
"BIG5"
),
mb_check_encoding($bin, "BIG5"),
bin2hex(mb_convert_encoding($conv, "BIG5", "UTF-8"))
);