I am getting info using social framework and getting facebook info, when i get username in another language i.e Denis then it give me like "\U00e6\U00f8\U00e5", how to convert this string to readable string i.e Denis?
Convert string from special character
1.7k Views Asked by Harin At
5
There are 5 best solutions below
0

I think these chracters are Unicode chracters, you can try something like this to convert them to UTF-8
1

Try with following code
Your string that you got,
NSString *myStr = @".....
;
And use this code,
const wchar_t *myResulr = (const wchar_t*)[myStr cStringUsingEncoding:NSUTF16StringEncoding];
NSLog(@"\n str2 = %S",myResulr);
This also may be Helpful in your case.
I found this usefull solution for my problem. Check this link
OR