I am using swift language 2.1.1
I am applying encoding mechanism on the string value. I used the following code,
let text = "-/:;.,?!'()&@*+=_~"
let encodedText = text!.stringByAddingPercentEscapesUsingEncoding(NSUTF16StringEncoding)
In my case, none of the characters are encoded.
May I have the solution on this