Monday, March 16, 2015

URLEncode in Xamarin Forms PCL

The shortest blog post ever. If you want to URLEncode (or decode) in a Xamarin Forms PCL, simply use:

var encoded = System.Net.WebUtility.UrlEncode(veryUnEncoded);

There is also methods for HTML encoding and decoding in there and url encoding/decoding to bytes. I always have to look this up for some reason, that's why I'm putting it on my blog so that I can find it easily.

Thank you, that is all...

3 comments:

  1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru Dot Net Training in Chennai.

    ReplyDelete