We have a live web services iPhone app where the content from the server is read from a MySQL table (Type: MyISAM
; Collation: latin1_swedish_ci
) & then sent through PHP via XML.
Everything was running fine until yesterday we needed to support ◉ character.
In the XML line in our PHP we changed
$xml_output = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
to $xml_output = "<?xml version=\"1.0\"?>\n";
And voila, along with that character, the app started supporting Emoji & International language!
But the problem is.. now when the content contains some particular characters, the app crashes, and we are unable to detect those characters.
As an example: When the MySQL field has this 'â¤ðŸ’˜ðŸ’UserFoo🌹â™' string, the app crashes. The weird characters in this example are supposedly some Emoji Characters.
I believe this is some encoding related issue, but have no idea how to set it up alright - from insertion into table using PHP & then fetching through XML.
How do I set the whole process? Also, it would be great if you could point to some resource for beginners that describes the whole thing with emoji support.
PS: I read this question & followed the suggestion, but couldn't fix yet.