473,320 Members | 1,910 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,320 software developers and data experts.

URLEncode thinks space should be +? what the?

I've been working with web technologies for ten years and in all that
time a safe urlencoding for a space has always been %20 on every
platform I have ever used. Now I am using asp.net and it's encoding a
space as a +. What on earth is this? Since when was a plus considered
a safe alternative to a space for transmission in a url? Heck there's
even an encoding for a plus sign, which shows just how un-safe this is!

So, rant over, is everyone having to roll there own urlencode for .net
or what?

Chandy

Sep 21 '06 #1
1 1581
for the whole history of html, + has been the url substitute for space. %
encoding was added later, so many encoders use + instead of %20. asp.net,
like javascript has many url encoders, see Uri.EscapeUriString.

-- bruce (sqlwork.com)

<ch****@totalise.co.ukwrote in message
news:11*********************@m7g2000cwm.googlegrou ps.com...
I've been working with web technologies for ten years and in all that
time a safe urlencoding for a space has always been %20 on every
platform I have ever used. Now I am using asp.net and it's encoding a
space as a +. What on earth is this? Since when was a plus considered
a safe alternative to a space for transmission in a url? Heck there's
even an encoding for a plus sign, which shows just how un-safe this is!

So, rant over, is everyone having to roll there own urlencode for .net
or what?

Chandy

Sep 21 '06 #2

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

Similar topics

1
by: NimP | last post by:
Hi,. I'm trying to detect any links that are contained within an html page using eregi pattern matching. I was wondering if there are any pattern matching geniuses out there who could write a...
3
by: Joshua Beall | last post by:
Hi All, I can see from the manual that the difference between urlencode and rawurlencode is that urlencode translates spaces to '+' characters, whereas rawurlencode translates it into it's hex...
0
by: Larry Pits | last post by:
Hi All, When I query a Employee table on the server which contains space between the first and last name. Then I place a variable like the following. fullname = (recordset1("EmployeeName")) ...
1
by: yawnmoth | last post by:
Any ideas as to why urlencode(addslashes(chr(0))) returns '%5C0'? It seems like it should return '%00' since that's what urlencode(chr(0)) returns. If not that, I could also see it returning...
1
by: Jim | last post by:
Hello, I'm trying to do urllib.urlencode() with unicode correctly, and I wonder if some kind person could set me straight? My understanding is that I am supposed to be able to urlencode...
4
by: Andreas Klemt | last post by:
Hello, is there a difference between System.Web.HttpUtility.UrlEncode and Server.UrlEncode ?
27
by: meltedown | last post by:
urlencode turns # into %23 When I sent it thru $_GET, it dissapears, along with anything that comes after it. for example: urlencode turns HOYDM_EXC_#4_NAT into HOYDM_EXC_%234_NAT When I...
12
by: sleytr | last post by:
Hi, I'm trying to make a gui for a web service. Site using ± character in value of some fields. But I can't encode this character properly. >>> data = {'key':'±'} >>> urllib.urlencode(data)...
2
by: gouqizi.lvcha | last post by:
For ASP.Net 2.0, if using HttpUtilities.Urlencode, it will encode spaces as '+' rather than %20, is this a known issue or something expected.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.