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 %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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.