Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] baseURI / systemID question

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Wolfgang Hoschek <whoschek AT lbl.gov>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] baseURI / systemID question
  • Date: Mon, 13 Sep 2004 16:26:08 -0400

Wolfgang Hoschek wrote:


As an aside, the other thing i noticed is that URLEncoder.encode(char) replaces " " with "+" rather than "%20".


+ is a special case in the URL spec. You can use + or %20. They mean the same thing.

This seems kind of weird in the context of file URLs, since file URLs never have space-separated name-value components. Plus, on

The escaping is not just for name-value components. It can be used in the path component of a URL as well.

MacOSX files containing spaces are legal.

Even though spaces are legal file name characters on most modern operating systems, they are not legal in URLs, and URLs are not file names. File names can also contain other characters that are illegal in URLs, for instance non-ASCII characters, and these too must be escaped.

--
Elliotte Rusty Harold
elharo AT metalab.unc.edu





Archive powered by MHonArc 2.6.24.

Top of Page