Reputation: 4551
i am developping an iOS application and i am using this :
mutableString = [mutableString stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
But the problem is when my mutableString
contain a string like this " ...a 'means of connection'..." or caracters like this one "-", the stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding
return a null
value.
How i can decode the caracters "'" and "-" ?? thanks
Upvotes: 2
Views: 735
Reputation: 57169
The format %uxxxx
is a non-standard implementation of percent encoding and is not supported by NSString
s stringByReplacingPercentEscapesUsingEncoding:
. If you need to handle these encodings you will need to either find 3rd party code that can do this for you or implement your own solution.
Upvotes: 1