How to decode this partially encoded string?

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
 
J

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top