_:n998b0c9233f44070aede8ebef9975379xb0
<http://schema.org/description>
"The stringByAddingPercentEscapesUsingEncoding function doesn&#x27;t translate all characters for URL encoding.To encode all characters I use the CFURLCreateStringByAddingPercentEscapes function as follow:- (NSString*) encodeUrlString:(NSString*)unencodedString { return (NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault,(CFStringRef)unencodedString,NULL,(CFStringRef)@&amp;amp;quot;!*&#x27;&amp;amp;quot;();:@&amp;amp;amp;=+$,/?%#[]% &amp;amp;quot;, kCFStringEncodingUTF8 );..."
<https://blog.innove.it/it/web-engineering-e-system-integration/ios-url-encode>