Hey all, I am having a little trouble Integrating foreign characters using
iOS and Apigee, any help would be greatly appreciated! 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?
I am aware that the NSLog outputs ASCII characters only and displays
non-Unicode characters the way it likes. But the error is with saving this
data to Apigee.
Kindest Regards
Chris Rogers
Digital Developer
[email protected]
@portchris <https://twitter.com/SamJohnAllen>
www.zeta.net
01202 237137
@ZetaAgency <https://twitter.com/ZetaAgency>
On 10 September 2014 23:13, Ed Anuff <[email protected]> wrote:
> Awesome!
>
> Ed
>
> > On Sep 10, 2014, at 1:44 PM, Scott Ganyo <[email protected]> wrote:
> >
> > Congrats, all!
> >
> > Best,
> > Scott
> >
> >> On Sep 10, 2014, at 1:22 PM, Dave <[email protected]> wrote:
> >>
> >> The Apache Usergrid team is happy to announce the availability of our
> first
> >> release from the Apache Incubator, known as Apache Usergrid 1.0. This
> >> release
> >> is a source-code only release that includes these components:
> >>
> >> * The Usergrid Stack - a Java-based web application that provides a
> >> complete
> >> Backend-As-A-Service (BaaS) as a set of REST APIs for user management,
> >> authentication, JSON entity indexing, query and much more. The Stack
> >> is backed by Apache Cassandra and ready for deployment on Apache Tomcat.
> >>
> >> * The Usergrid Portal - a comprehensive developer portal that allows
> >> multiple organizations to manage applications, users, groups,
> permissions
> >> and the data stored in Usergrid. The portal is written in HTML5,
> JavaScript
> >> and the Angular framework.
> >>
> >> * The Usergrid SDKs - clients for programming Usergrid applications
> >> for JavaScript, Node.js, Java, Ruby, iOS, Android, Dot-Net and more.
> >>
> >> * The Usergrid Launcher - makes it easy to experiment with Usergrid
> >> on your local computer by launching Usergrid with embedded Cassandra
> >> and a web server.
> >>
> >>
> >> This is our first release at Apache, but Usergrid has been in production
> >> use at some sites for over two years. Download the source, build it,
> >> try it out and please join us in making it better and easier to use.
> >>
> >> The release files can be found on Apache mirrors world-wide:
> >> http://www.apache.org/dyn/closer.cgi/usergrid/usergrid-1/v1.0.0
> >>
> >> Documentation for Apache Usergrid can be found on our website here:
> >> http://usergrid.incubator.apache.org/docs/
> >>
> >> And in Git here:
> >> https://github.com/apache/incubator-usergrid
> >>
> >>
> >> Thanks!
> >>
> >> The Apache Usergrid Team
>