When sending unicode characters Apigee seems to deny these.
The values are entered into the NSDictionary okay using the code below:
NSMutableDictionary *entity = [[NSMutableDictionary alloc] init ];
textView.text = @"È ê ü à ã"
NSString *message = [NSString stringWithUTF8String:[textView.text cStringUsingEncoding:NSUTF8StringEncoding]];
[entity setObject:@"messages" forKey:@"type"];
[entity setObject:message forKey:@"message"];
AppDelegate *appDelegate = (AppDelegate *)[ [UIApplication sharedApplication] delegate];
ApigeeClientResponse *response = [appDelegate.dataClient createEntity:entity];
If I NSLog the NSDictionary I see:
{
type = messages;
message = "\U00c8 \U00ea \U00fc \U00e0 \U00e3";
}
After posting this to Apigee, the success response returns without the special characters:
{
type = messages;
message = "E e u a a";
}
How to I prevent the NSDictionary from encoding these characters and allowing the Unicode characters to save into Apigee?
This issue was resolved within the newest Apigee version 2.0.14.