[Home] [By Thread] [By Date] [Recent Entries]
--On Wednesday, February 20, 2008 10:04:36 AM +0000 Andrew Welch wrote:
Spaces aren't allowed in URIs, but the spec does say: The XML spec may say that spaces in the system ID are converted to %20 before being handed off to whatever deals with the URI but that leads you into one of the less clear areas of the URI syntax if the encoded space is in the authority part of the URI. There is also the issue that a URI reference starting '/' is a relative reference so must be resolved against some base URI before you can know what is valid for the particular scheme. The part of RFC3986 that permits percent encoded octets in the authority part of a hierarchical URI does so in order to allow non-ASCII characters and implies that it should not be used otherwise although the wording is not particularly clear. I think that this is suggesting that space is not a valid character in the authority part of a URI. Syntax conformance of that part of a URI is delegated to the O/S anyway so it is not surprising that there are differences when you go beyond what the RFC recommends (names that conform to the DNS syntax). -- Owen Rees ======================================================== Hewlett-Packard Limited. Registered No: 690597 England Registered Office: Cain Road, Bracknell, Berks RG12 1HN
|

Cart



