objective c - iOS: Prevent Restkit from URL encoding commas -


"itemprop =" text "> after

I'm using RestKit to access a web service that I do not control. In an operation, the "ageGroup" argument form must be below in the description / ex>

  AG = Babies, + Toddlers, + Preschoolers, + child age 6-11  

It is okay to call the web service from the browser using the above functions. I also note that your browser is automatically encrypted with spaces, but not a comma or a plus sign

URL as RestKit Encrypt this part of:.

  AG = Babies% 2C% 2BToddlers% 2C% 2BPreschoolers% 2C% 2BKids% 20ages% 206-11  

urls (even one Trying to use this in the browser does not work). I have reduced the problem to the command; For whatever reason, the web service is not decoding the comma escape chain correctly again, I have no control over the web service, so I can not do anything about it

How do I Can these Commas stop RestKit from encoding? Is there some other alternative solution for this that I am not thinking of?

After the

RestKit uses AFNetworking. I have modified all of you to do AFPercentEscapedQueryStringKeyFromStringWithEncoding function. Remove commas from

kAFCharactersToBeEscapedInQueryString .


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -