PDA

View Full Version : Unescape escaped Unicode characters




fotios2008
Nov 14, 2008, 02:12 PM
I retrieve some Unicode characters (French) from a server through http (using asynchronous request) and, of course, these characters are sent to me as UTF-8. So, I receive them as UTF-8 through an NSData object and then I create an NSString object from it. However, I can't convert them back to Unicode.

They're all escaped. For example the \u00e9 (french e with an accent on it), becomes \\u00e9. Does anyone know a way to solve this problem in Objective-C?

Thanks so much in advance,
Fotios



PhoneyDeveloper
Nov 14, 2008, 04:55 PM
At which stage in your process do they become escaped?

Server->NSURLConnection->NSData->NSString