Re: URIs vs. half-baked URIs (was Filesel drag and drop)

On Thu, 2 Aug 2001, Daniel Veillard wrote:

> On Thu, Aug 02, 2001 at 11:01:41PM +0100, Sander Vesik wrote:
> > 
> > How about a function that verified that a given string is a propely
> > encoded URI? 
>   Theorically it doesn't work, you don't know if the % was intentional
> or not. Okay if you have % and exactly 2 numbers (arabic) then there is
> a high probability it is already escaped. But it's an heuristic at best.

Actually, the % should be followed by 2 hex digits, not arabic (20 -> hex
for decimal 32 -> " "). 

I have been living under the impression that there was an rfc that
specified how URIs/URLs were supposed to look like and that it allowed for
no unescaped %-s...

> Daniel
> -- 
> Daniel Veillard      | Red Hat Network
> veillard redhat com  | libxml Gnome XML XSLT toolkit
> | Rpmfind RPM search engine


I haven't been vampired. You've been Weatherwaxed.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]