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

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -