I am trying to support arbitrary unicode from many international users. They already put a bunch of data into sqlite databases on their iPhones, and now I want to grab the data into the database and then send it back to my device. I am currently using a php page that sends data from a mysql database on the Internet. The data is saved in the mysql database correctly, but when it is sent back, it is displayed as Unicode text, for example
Frank \ u00e2 \ u0080 \ u0099s iPad
instead
Frank ipad
where the apostrophe really should be a curly apostrophe.
The answer to another question indicates that there are no Cocoa built-in methods for converting the "\ u00e2 \ u0080 \ u0099" part to a unicode string from the web server to the NSString object. Is it correct?
This seems really surprising (and disappointingly disappointing), because Cocoa definitely allows you to enter many different Unicode characters, and I need to support any arbitrary language that I have never heard of, and all possible characters. I save them in the local sqlite database and itβs just fine from it, but as soon as I send it to the web server, I can probably pull out different data, I want the data pulled from the web server to be formatted correctly.
source share