Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28769

Re: URLEncoder and #

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Nigel Wade <nmw@ion.le.ac.uk>
Newsgroups comp.lang.java.programmer
Subject Re: URLEncoder and #
Date Wed, 18 Jun 2014 11:30:23 +0100
Lines 19
Message-ID <c0d81vFpkskU1@mid.individual.net> (permalink)
References <t8n2q9phsbha7e25j4tj0e53sqa3qqt0g0@4ax.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net kdDW6oaR7X9yqEQTCkIwuAUHD9vZTAaSj8yZsZnl22UuYVP52a
Cancel-Lock sha1:uKTZB5UkPaeV7iWWS6vhHUBmpLk=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5
In-Reply-To <t8n2q9phsbha7e25j4tj0e53sqa3qqt0g0@4ax.com>
Xref csiph.com comp.lang.java.programmer:28769

Show key headers only | View raw


On 18/06/14 10:37, Roedy Green wrote:
> It seems URLEncoder converts # to %23
>
> Why would there be any need to encode it?

Because # is a special character in a URI. It separates the main URI from a fragment suffix. Have you never used "NAME" 
tag in your web pages to identify sub-sections? The browser shouldn't send anything after a # in a request, it's used by 
the browser to identify a fragment within the returned page.

The URI specification should satisfy your curiosity.

>
> The AppVisor people are complaining about URLs containing # saying
> they need to be URLEncoded.  Surely that is not true.
>

I think it probably is true.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

URLEncoder and # Roedy Green <see_website@mindprod.com.invalid> - 2014-06-18 02:37 -0700
  Re: URLEncoder and # Nigel Wade <nmw@ion.le.ac.uk> - 2014-06-18 11:30 +0100
    Re: URLEncoder and # Roedy Green <see_website@mindprod.com.invalid> - 2014-06-20 08:06 -0700
      Re: URLEncoder and # markspace <markspace@nospam.nospam> - 2014-06-20 08:22 -0700
        Re: URLEncoder and # Arne Vajhøj <arne@vajhoej.dk> - 2014-06-21 23:10 -0400
  Re: URLEncoder and # Joerg Meier <joergmmeier@arcor.de> - 2014-06-18 16:42 +0200
  Re: URLEncoder and # Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2014-06-18 18:50 -0700

csiph-web