- mb_convert_encoding: documentation ( source)
- var_dump: documentation ( source)
- bin2hex: documentation ( source)
- preg_match: documentation ( source)
<?php
$str = "\x2F\xC0\xAE\x2E\x2F";
$converted = mb_convert_encoding($str, 'UTF-8', 'UTF-8');
var_dump(bin2hex($str), $converted, bin2hex($converted), preg_match('//u', $str));