NSString * string = @"ุงุงููุญูู
ูุฏู ููููููู ุฑูุจูู ุงููุนูุงููู
ูููู"; const char *c = [string cStringUsingEncoding:NSUTF8StringEncoding]; NSString *newString = [[NSString alloc]initWithCString:c encoding:NSISOLatin1StringEncoding]; NSLog(@"%@",newString);
Why is this directly commented on? Does the encoded string not convert to Arabic? When I hardcode the Arabic language, it encodes and then decodes correctly, but why is the static encoded string not readable in Arabic?
Thanks for your reply Jake. Yes, I am losing data when decoding "staticEncodedString". But all I want is to decode the next line in Arabic.
NSString * staticEncodedString = @"รยงรรรรร รรยฏร รรรรรรร รยฑรรยจรร รยงรรรยนรรยงรรร รรรร";
Hanny source share