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


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

Re: URLEncoder and #

From Nigel Wade <nmw@ion.le.ac.uk>
Newsgroups comp.lang.java.programmer
Subject Re: URLEncoder and #
Date 2014-06-18 11:30 +0100
Message-ID <c0d81vFpkskU1@mid.individual.net> (permalink)
References <t8n2q9phsbha7e25j4tj0e53sqa3qqt0g0@4ax.com>

Show all headers | 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