I am stuck with problem in iOS chat app where we are reading response from webservice as JSON. In Android chat is working fine but not able to succeed in iOS chat app.
In my SQL db we have tried all four character sets available (sjis_japanese_ci).
In iOS, we are expecting response from server in NSUTF8Encoding
but the encoding suggested by iOS API is NSWindowsCP1251StringEncoding
and we try to use that encoding then decoded string has corrupted Japanese data.
API method we are using to detact the encoding is
NSStringEncoding encoding = [NSString stringEncodingForData:aResponseData encodingOptions:nil convertedString:nil usedLossyConversion:NO];