Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to decode this partially encoded string?

Reply
Thread Tools

How to decode this partially encoded string?

 
 
John Dalberg
Guest
Posts: n/a
 
      03-08-2007
This is part of submitted form. Which .NET function can be used to convert
the encoded characters?

....
Address%2525051%252505Berguvsv%2525E4gen%252520%25 25208%2503City%2525052%25
2505Lule%2525E5%2503CompanyName%2525053%252505Berg lunds


John Dalberg
 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      03-08-2007
HttpUtility class in System.Web namespace
http://msdn2.microsoft.com/en-us/lib...tputility.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.

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net


"John Dalberg" <(E-Mail Removed)> wrote in message
news:20070308125035.623$(E-Mail Removed)...
> This is part of submitted form. Which .NET function can be used to convert
> the encoded characters?
>
> ...
> Address%2525051%252505Berguvsv%2525E4gen%252520%25 25208%2503City%2525052%25
> 2505Lule%2525E5%2503CompanyName%2525053%252505Berg lunds
>
>
> John Dalberg


 
Reply With Quote
 
 
 
 
John Dalberg
Guest
Posts: n/a
 
      03-08-2007
"Teemu Keiski" <(E-Mail Removed)> wrote:
> HttpUtility class in System.Web namespace
> http://msdn2.microsoft.com/en-us/lib...tputility.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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
decode base64 encoded login info Mr. T ASP .Net 1 03-05-2007 03:47 PM
URL Decode HTML encoded in JavaScript Ben Amada ASP .Net 1 09-30-2005 08:25 AM
Can I decode the content with java which is encoded with DESCryptoServiceProvider wolf ASP .Net 0 03-20-2005 06:14 PM
How do i decode an ISO-8859-1 encoded text file? SHIRE Java 4 02-04-2004 04:03 PM



Advertisments