473,396 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

url en/decode

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
10 2640
Cor
Hi Steve,

You mean?

HttpUtility.UrlEncode and HttpUtilityUrlDecode Method

Cor
Nov 20 '05 #2
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
Cor
i'm using .net 2k3...any thoughts on that?


Yes did you set a reference to system.web?

Cor
Nov 20 '05 #4
* "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
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
| 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
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
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
* "=?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
Sorry. I will re-post this in vc group. Thanks

Yifan
Nov 20 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Matt Oefinger | last post by:
Hello gurus, I'm trying to do a search through an encrypted database (to which I have the key). I want to use the LIKE operator in MySQL rather than dumping out all entries and sorting in Perl,...
10
by: N | last post by:
What is the function in SQL that works like DECODE in Oracle?" Thanks, N
4
by: Newbie | last post by:
How would I modify this form to encode *all* the characters in the 'source' textarea to the '%xx' format & place result code into the 'output' textarea? (cross browser compatable) Any help is...
1
by: richasaraf | last post by:
Hello everyone, I'm facing problem in converting CASE statements into DECODE. As i have PL/SQL 8i, so it does not handle CASE statements. Please send me the solutions . Then basic problem is the...
0
by: richasaraf | last post by:
Hello everyone, Please HELP !!!!! I'm facing problem in converting CASE statements into DECODE. As i have PL/SQL 8i, so it does not handle CASE statements. Please send me the solutions . Then...
0
by: Simon | last post by:
Newbie alert! I have a webform listbox with what I am sure is a common requirement. I wish to store a list of values but display a "translation" or decode. An example would be 1, 2, 3, 4 and One,...
2
by: aurora | last post by:
I have some unicode string with some characters encode using python notation like '\n' for LF. I need to convert that to the actual LF character. There is a 'unicode_escape' codec that seems to...
2
by: rsd | last post by:
Hi, I'm trying get Samsung YH-920 mp3 player to work with Debian GNU/Linux. To do that I need to run http://www.paul.sladen.org/toys/samsung-yh-925/yh-925-db-0.1.py script, the idea behind the...
1
by: dande | last post by:
my problem is I have used invoice table, patient table.In Invoice table date,cash,credit, cheque,advance,total is coming.but in patient table having registration type code having gen registraion...
1
by: anonymous | last post by:
1 Objective to write little programs to help me learn German. See code after numbered comments. //Thanks in advance for any direction or suggestions. tk 2 Want keyboard answer input, for...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.