metaosp sade:
Hi,
Could anyone suggest a nice, small url encoder/decoder class (or
function) with source code?
Since a URI is only allowed to contain US-ASCII characters, all you
have to do is search through the string and replace each illegal
character with '%' + hexadecimal code. And space must be encoded
as '%20'.
www.w3.org provides a complete specification, which
is not that long or hard to grasp. But remember not to encode
actual delimiters in the URI.
--
TB @ SWEDEN