How to decode this partially encoded string?

  • Thread starter Thread starter John Dalberg
  • Start date Start date
J

John Dalberg

This is part of submitted form. Which .NET function can be used to convert
the encoded characters?

....
Address%2525051%252505Berguvsv%2525E4gen%252520%2525208%2503City%2525052%25
2505Lule%2525E5%2503CompanyName%2525053%252505Berglunds


John Dalberg
 
Teemu Keiski said:
HttpUtility class in System.Web namespace
http://msdn2.microsoft.com/en-us/library/system.web.httputility.aspx

or just Server.UrlDecode in ASP.NET. benefit with HttpUtility is that you
can specify the encoding directly (Via Server property certain
assumptions are done) though Server.UrlDecode should be sufficient in
most cases.

I tried Server.UrlDecode abd it didn't work. The string was the same. Does
the string need to be in a certain format. Are there errors that occur if
decoding was not successful?

Tony
 
Back
Top