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
The format
%uxxxxis a non-standard implementation of percent encoding and is not supported byNSStringsstringByReplacingPercentEscapesUsingEncoding:. 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.