Convert PHP entities like – or š to their original characters in xml file -
actually displayed mysql data in xml filel.but showing special character.how convert .this example words.
{ ldhe, world,rdquo ,caper,rdquo } i want convert to applicable characters.can please me.
i got similar problem recently.
got solved using combination of iconv , mb_detect_encoding.
try parse utf-8//ignore//translit, translit try parse char in similar charsets, , ignore discard char cannot found.
one way :
$result = iconv(mb_detect_encoding($result), 'utf-8//ignore//translit', $result);
Comments
Post a Comment