Tag Archives: UTF-8

How-To: URL Encode NSString with UTF-8 Characters in Objective-C

Let’s say you have to send a POST HTTP request that contains UTF-8 characters. But the problem is that url will not be formed if you simply try to generate it from a string. I managed that problem in the following way:

[crayon-662aeb8ea9528594867533/]

References:

http://blog.evandavey.com/2009/01/how-to-url-encode-nsstring-in-objective-c.html