I am looking for url escape and unescape functions in MonoTouch. Essentially I am looking for the MonoTouch equivalent of the method stringByReplacingPercentEscapesUsingEncoding, as in the follow line of objective-c code:
NSString *args = [(NSString*)[components objectAtIndex:3]
stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
I was expecting to be able to translate this to something like this:
string args = URL.Unescape(components[3]);
Do URL escape/unescape functions exist in MonoTouch or do I have to roll my own?
System.Web.HttpUtility.UrlDecode (string s);
Which is in System.Web.Services.dll in monotouch.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With