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