I successfully post and receive data by using RestKit. For example, I can easily decode this response (it is the debug output from RestLog):
response.body={
"response":
{"fields":{"name":"test"}}
}
But when the data contains accents, the response is encoded weardly:
response.body={
"response":
{"fields":{"name":"\u00c3\u00a8\u00c3\u00a8"}}
}
and then my mapping is wrong. The mapping is done as usual:
@property (nonatomic, copy) NSDictionary *fields;
I extract the fields
from the response and then do the mapping.
mappingDict = @{ @"fields" :@"fields" };
responseMapping = [RKObjectMapping mappingForClass:[SynchObj class]];
[responseMapping addAttributeMappingsFromDictionary:mappingDict];
How to handle accents?