I am working on a iphone app where I send user informations via SOAP to my server, where I store them in my database as UTF-8 strings.
The problem is, that when the server receives the strings they are sent as Unicode formatted in the form e.g. \U00fc which supposed to be a ‘ü’.
the string containing ‘\U00fc’ is stored correctly in the database. but when I read the database I get only ‘U00fc’ the \ is gone…
But also for better read option I would actually like to convert the ‘\U00fc’ into a ‘ü’ store it to the database and then when reading the database I would convert it back for the iPhone.
I just couldn’t find any functions in PHP that does this… I am pretty sure something like this must exist somewhere already, not that I have to re-implement the whole unicode table…
if you know any suggestions I would be glad if you could help me.
If your input insists on upper case
\U, you could fix it with this:Or all wrapped in one: