I got below JSON string, i facing issue parsing because it contains non english local:
{“error”:0,”token”:”59188a107d705f8c51585d719769e0642ce98b79d86fdace30dbc58efba301cc”,”status”:”200″,”messages”:[{“update_time”:”2012-03-31
22:50:13″,”seq”:”497″,”lng”:58.4235,”msg”:“hhhh : ≈∏?≈∏?
√ø‚Ñ¢√ø‚Ñ¢√ø√ü≈∏?√ø‚Ñ¢ “,”lat”:23.5866}],”error_msg”:””}
i’m trying with below code:
NSError* error;
NSDictionary* json = [NSJSONSerialization JSONObjectWithData:responseData //1
options:kNilOptions
error:&error];
it works fine if it’s in English only, how could I parse non english local in JSON.
From the docs:
Since your string does not appear correctly in Safari, I suspect that it is not encoded in one of these formats. You would need to re-encode your data into a legal JSON encoding.