How to convert UTF8 characters to numeric character entities in PHP
$convmap = array(0x80, 0xffff, 0, 0xffff);echo mb_encode_numericentity($utf8Str, $convmap, 'UTF-8');
$convmap = array(0x80, 0xffff, 0, 0xffff);echo mb_encode_numericentity($utf8Str, $convmap, 'UTF-8');