Re: How to correctly validate url?

From: Date: Wed, 18 Jan 2012 10:21:45 +0000
Subject: Re: How to correctly validate url?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-316328@lists.php.net to get a copy of this message
Sent from a handheld device On 18-Jan-2012, at 4:05 PM, Tanel Tammik <keevitaja@gmail.com> wrote: > Hello, > > how to correctly validate url? now the special local characters like > ÜÕÖÄ etc are allowed as well... > The generic URI syntax mandates that new URI schemes that provide for the representation of character data in a URI must, in effect, represent characters from the unreserved set without translation, and **should convert all other characters to bytes according to UTF-8, and then percent-encode those values**. This requirement was introduced in January 2005 with the publication of RFC 3986. URI schemes introduced before this date are not affected.[1] [1] http://en.wikipedia.org/wiki/Percent-encoding > Br, > Tanel > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#316328) next »