On Mon, 21 Jul 2008, Julian Reschke wrote: > > > > > > > > ...which basically just says it's a valid URL if it's a valid URI > > > > or IRI (with some caveats in the case of IRIs to prevent legacy > > > > encoding behaviour from handling valid URLs in a way that > > > > contradicts the IRI spec). This doesn't allow spaces. > > > > > > Correct. But it does allow non-ASCII characters. How do you put them > > > into an HTTP header value? > > > > Presumably HTTP defines how to handle non-ASCII characters in HTTP as > > part of its error handling rules, no? > > Non-ASCII characters in header values are by definition ISO-8859-1.
Well then the answer to your question is that you use ISO-8859-1 or %-escaping. (And for legacy reasons, only %-escaping in the query part.) > It's not sufficient to encode all IRIs, thus you need to map > IRIs to something you can use. ASCII is sufficient to encode all IRIs. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'