url en/decode

  • Thread starter Thread starter steve
  • Start date Start date
S

steve

refresh my memory please...how does one decode a url encoded string...i.e.,

& to @
" to "
&lt; to <
&gt; to >

etc.

tia,

steve
 
i saw httputility w/ both en/decode and that it was in the system.web
namespace w/n the help files but i can't seem to find it in intelllisense.
in the system.web intellisense list, i just have:

aspnethostingpermission
aspnethostingpermissionattribute
aspnethostingpermissionlevel
services

i'm using .net 2k3...any thoughts on that?

tia,

steve
 
* "steve said:
refresh my memory please...how does one decode a url encoded string...i.e.,

&amp; to @
&quot; to "
&lt; to <
&gt; to >

That are HTML entities or XML entities, I don't think that this has
something to do with URL encoding.
 
thanks cor! setting the reference worked...i keep switching back and forth
between languages and platforms so i forget sometimes that you have to set a
reference instead of just importing a namespace.

thanks again,

steve


|
| > i'm using .net 2k3...any thoughts on that?
|
| Yes did you set a reference to system.web?
|
| Cor
|
|
 
| That are HTML entities or XML entities, I don't think that this has
| something to do with URL encoding.

i'm decoding xml values where "this sentence has spaces & special
characters" w/b encoded as
"this+sentence+has+spaces+&amp;+special+characters".

is httputility.urldecode not going to work?
 
Hi

I want to use UrlDecode() in C++. I have a Win32 Visual C++ (.NET) project
#using <mscorlib.dll
#using <System.dll
#using <System.Web.dll

using namespace System
using namespace System::Web

void dummy(

...
path = UrlDecode(path)


When I build the project I got error: "fatal error C1190: managed targeted code requires '#using <mscorlib.dll>' and '/clr' option". But I already am using it. Could any one tell me what I am missing? Many Thanks

Yifan
 
I want to use UrlDecode() in C++. I have a Win32 Visual C++ (.NET) project.

Then I suggest you post to a VC++ newsgroup such as

microsoft.public.dotnet.languages.vc



Mattias
 
* "=?Utf-8?B?WWlmYW4=?= said:
I want to use UrlDecode() in C++. I have a Win32 Visual C++ (.NET) project.

Why are you posting that to a VB.NET group? You will more likely get an answer
if you post to this group:
 
Back
Top