Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #28797
| From | markspace <markspace@nospam.nospam> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: URLEncoder and # |
| Date | 2014-06-20 08:22 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <lo1jj6$ak2$1@dont-email.me> (permalink) |
| References | <t8n2q9phsbha7e25j4tj0e53sqa3qqt0g0@4ax.com> <c0d81vFpkskU1@mid.individual.net> <ncj8q9lpkg6h39ob163a5bpk8i89o3n84m@4ax.com> |
On 6/20/2014 8:06 AM, Roedy Green wrote: > On Wed, 18 Jun 2014 11:30:23 +0100, Nigel Wade <nmw@ion.le.ac.uk> > wrote, quoted or indirectly quoted someone who said : > >>> >>> 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. > > If wanted to include # in a file name you would encode it, but if you > meant it to introduce an anchor on the page you would not, right? > If by "file name" you mean the path part of the URI, then yes. However watch out for including other special characters in the anchor: http://foo.com/path#my#1anchor Will confuse most parsers and is probably a syntax error anyway. Also watch out for the query part of the URI, which needs to be encoded differently. http://foo.com/path?a=#1,b=#2#anchor Is also incorrectly encoded.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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