- mb_convert_encoding: documentation ( source)
- var_dump: documentation ( source)
- mb_strlen: documentation ( source)
- mb_substitute_character: documentation ( source)
- mb_internal_encoding: documentation ( source)
<?php
mb_internal_encoding('UTF-8');
$value = 'g' . chr(0xa4) .'eld';
$orignalValue = $value;
mb_substitute_character('entity');
$value = mb_convert_encoding($value, 'UTF-8');
var_dump($value, mb_strlen($value));