I have a string in which there are English letters and Japanese characters. I need to convert Japanese characters to Unicode before transferring data to our server. I found many topics to convert to UTF-8, but I did not find anything when it comes to converting to Unicode.
Note: I also notice that if I put a string in an array and use NSLog to print the array, the Japanese text will be printed in Unicode.
NSString *data = @"ać";
NSArray *array = [NSArray arrayWithObjects: data, other data..., nil];
NSLog(@"%@", array);
This will print: "a \ U3055" for my string data inside the array.
source
share