NSURL *myURL = [NSURL URLWithString: [self.url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; is depicted?

Hi,

I'm getting the familiar "is depicted" message when I try to use the below command in my RSS reading app. I'm using the below command when I get this error:


NSURL *myURL = [NSURL URLWithString: [self.url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];


How can I fix it?


Thanks,

Dan Uff

Replies

According to :

https://developer.apple.com/documentation/foundation/nsstring/1415058-stringbyaddingpercentescapesusin


Use

stringByAddingPercentEncodingWithAllowedCharacters:
instead.

Message you get is probably "deprecated", which means the definition is obsolete.


So, use PBK solution.

Been there, done that. Doesn't work. That's why I posted here.

“Doesn’t work” - how do?