views:

35

answers:

1

i have a URL like http%3A%2F%2Fwww%2Ewikimoveis%2Ecom%2Ebr%2Ffotos%2F1292%2FKO2551%2FDSC01366%2EJPG

I need to get it decode correctly. I believe that is Hexadecimal. Can't find any C# code that would do that.

thank you

+3  A: 

From http://stackoverflow.com/questions/608453/c-urldecode-turns-5c-into-instead-of

using System;
using System.Web;

string url = "http%3A2F%2Fwww%2Ewikimoveis%2Ecom%2Ebr%2Ffotos%2F1292%2FKO2551%2FDSC01366%2EJPG"
string decoded = HttpUtility.UrlDecode(url);
MvanGeest
Thanks. Sorry for the dumbs question... desperate times :)
EduardoMello
Maybe I said it somewhere... but there aren't dumb questions, there are only questions to which the answer is evident. If (because of desperate times, for example) the answer isn't evident to you, that's fine.
MvanGeest
you're right... thank you!
EduardoMello