By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,417 Members | 835 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,417 IT Pros & Developers. It's quick & easy.

url en/decode

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

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

etc.

tia,

steve
Nov 20 '05 #1
Share this Question
Share on Google+
10 Replies


P: n/a
Cor
Hi Steve,

You mean?

HttpUtility.UrlEncode and HttpUtilityUrlDecode Method

Cor
Nov 20 '05 #2

P: n/a
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
Nov 20 '05 #3

P: n/a
Cor
i'm using .net 2k3...any thoughts on that?


Yes did you set a reference to system.web?

Cor
Nov 20 '05 #4

P: n/a
* "steve" <a@b.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5

P: n/a
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
"Cor" <no*@non.com> wrote in message
news:ej**************@TK2MSFTNGP11.phx.gbl...
|
| > i'm using .net 2k3...any thoughts on that?
|
| Yes did you set a reference to system.web?
|
| Cor
|
|
Nov 20 '05 #6

P: n/a
| 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?
Nov 20 '05 #7

P: n/a
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
Nov 20 '05 #8

P: n/a
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 20 '05 #9

P: n/a
* "=?Utf-8?B?WWlmYW4=?=" <an*******@discussions.microsoft.com> scripsit:
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: news:microsoft.public.dotnet.languages.vc.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #10

P: n/a
Sorry. I will re-post this in vc group. Thanks

Yifan
Nov 20 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.