samir
samir

Reputation: 4551

How to decode special characters

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

Answers (1)

Joe
Joe

Reputation: 57169

The format %uxxxx is a non-standard implementation of percent encoding and is not supported by NSStrings 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

Related Questions