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