From: Alex Young Date: 2006-05-06T20:04:18+09:00 Subject: Re: URI parsing barfs on '^' PA wrote: > > On May 06, 2006, at 11:55, Alex Young wrote: > >> The question is, should '^' need to be quoted? It's not named as a >> reserved character in RFC 3986, which I *think* is the most recent URI >> definition, so shouldn't URI.parse be able to handle it? > > > My guess is that Ruby's URI parser takes its inspiration from RFC 2396, > which uri/common.rb refers to: > > 2.4.3. Excluded US-ASCII Characters > > unwise = "{" | "}" | "|" | "\" | "^" | "[" | "]" | "`" > > Data corresponding to excluded characters must be escaped in order to > be properly represented within a URI. > > http://www.ietf.org/rfc/rfc2396.txt Gotcha. Thought it'd be something obvious... -- Alex