[erlang-questions] Url decoding

Carlo Bertoldi carlo.bertoldi@REDACTED
Fri Jul 1 14:23:13 CEST 2011


On 01/07/2011 14:17, Chandru wrote:
> On 1 July 2011 10:10, Carlo Bertoldi <carlo.bertoldi@REDACTED 
> <mailto:carlo.bertoldi@REDACTED>> wrote:
>
>     Hello again,
>      I believe this is a quite common problem, but I couldn't find an
>     answer to my problem.
>     I'd like to URL encode/decode strings.
>     Encoding: edoc_lib:escape_uri("hello hello"). Perfect, but how can
>     I go back to the original string now?
>     Is it possible to do it without using external libs, as those
>     found in Yaws, or ibrowse? or I'll have to include one of those in
>     my project?
>
>
> The http_uri module which is part of inets is probably what you need.
>
> cheers
> Chandru
>
Hi Chandru, I looked into http_uri module, but it only exports the parse 
function:

http_uri:parse("http://try.com/ciao%20ciao").
{http,[],"prova.com",80,"/ciao%20ciao",[]}

This doesn't solve my problem.




More information about the erlang-questions mailing list