This question may seem silly, but i have been trying to solve it for some time. Any help is appreciated. This is how a part of my response json:
{
code = CAD;
country = Canada;
"currency_id" = 3;
"symbol" = "$";
},
{
code = CZK;
country = "Czech Republic";
"currency_id" = 4;
"symbol" = "K\\xc4\\x8d";
},...
The "symbol" field is my headache.
NSString *string = @"K\\xc4\\x8d";
const char *utf8string = [string UTF8String];
NSString *encodeString = [NSString stringWithUTF8String:utf8string];
NSLog(@"convertedString: %@", encodeString);
This code does not seem to work. It prints 'K\xc4\x8d'.
Please advice me how can I get the desired out put , ie, "Kč" ?
Thanks in advance.