objective c - iOS: Prevent Restkit from URL encoding commas -
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> 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:. 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
AG = Babies, + Toddlers, + Preschoolers, + child age 6-11
AG = Babies% 2C% 2BToddlers% 2C% 2BPreschoolers% 2C% 2BKids% 20ages% 206-11
AFPercentEscapedQueryStringKeyFromStringWithEncoding
function. Remove commas from kAFCharactersToBeEscapedInQueryString
.
Comments
Post a Comment