Jeg Bagus Jeg Bagus - 1 year ago 67
PHP Question

Weird character on mysql

i proceed XML, sometime i get XML parsing error because of weird character.

something like this character : ââ¬â¢

how can i filter this character using PHP?

or can i clean database, and remove those weird character?

Bil Bil
Answer Source

Connect to your database into UTF-8 charset and you don't have anymore strange chars or put strings between <![CDATA[]]>