ios - Bad url exception when using accented characters in url -
i using afnetworking fetch data server.
when there accented character in url error this:
userinfo={"nsunderlyingerror"=>#<__nscferror:0xfd3aa70, description="bad url", code=-1000, domain="kcferrordomaincfnetwork", userinfo={"nslocalizeddescription"=>"bad url"}>, "nslocalizeddescription"=>"bad url"}>
however, when try url browser (chrome), backend api returns results fine.
here sample url i'm trying: http://localhost:9000/my/jalapeƱos
a url requires encoded. given example string representing uri, it's wrong.
you may take @ nsurlcomponents
(available osx >= 10.9 , ios >= 7.0) , rfc 3986.
Comments
Post a Comment