I’m developing an iOS application , that will take a twits from twitter,
I’m using the following API
The problem are feed in Arabic Language ,
i.e the text feed appears like this
\u0623\u0646\u0643 \u0648\u0627\u0647\u0645
How can i get the real text (or how to encode this to get real text) ?
This is not encrypted, it is unicode. The codes 0600 – 06ff is Arabic. NSString handles unicode.
Here is an example:
NSLog output:
The only question is exactly what problem are you seeing, are you getting the Arabic text? Are you using
NSJSONSerializationto deserialize theJSON? If so there should be no problem.Here is an example with the question URL (don’t use synchronous requests in production code):
NSLog output: