URI encoding

Simon Aurell <>
Wed Apr 19 20:32:30 CEST 2006


There are two functions in yaws_api for this. From the documentation:

	url_decode(Str)
              Decode url-encoded string. A URL ncoded string is a string where
              all alfa numeric characters and the the  character  _  are  pre-
              served  and all other characters are encode as "%XY" where X and
              Y are the hex values of the least respective most  significat  4
              bits in the 8 bit character.


       url_encode(Str)
              Url-encodes  a  string.  All  URLs in HTML documents must be URL
              encoded.


Tom Whitcomb wrote:

>Is there a function for encoding/decoding URIs (ietf rfc 2396)?  I looked through the online http, httpd and httpd_util modules definitions and couldn't find one.
>
>tom
>  
>
-- 

http://www.erlang-consulting.com




More information about the erlang-questions mailing list