- mb_convert_encoding: documentation ( source)
- var_dump: documentation ( source)
- hex2bin: documentation ( source)
- bin2hex: documentation ( source)
- mb_check_encoding: documentation ( source)
- mb_substitute_character: documentation ( source)
<?php
mb_substitute_character("long");
var_dump(
$conv = mb_convert_encoding(
$bin = hex2bin("a3f8f3abc0ce8ffaa1bce3adfcf1b2"),
"UTF-8",
"eucJP-win"
),
mb_check_encoding($bin, "eucJP-win"),
bin2hex(mb_convert_encoding($conv, "eucJP-win", "UTF-8"))
);