"Danny" <> wrote in message
news

LKkc.67740$. net...
>
> "Gregory Toomey" <> wrote in message
> news:1513682.d3x1Bjo0rK@GMT-hosting-and-pickle-farming...
> > Danny wrote:
> >
> >
> > Its a faq.
> >
> > http://www.perldoc.com/perl5.8.0/pod/perlfaq9.html
> > How do I decode or create those %-encodings on the web?
> >
> >
> > But its better to use the cgi.pm module
> >
>
> Thanks
>
> but an initial call with this long url is always made from my index.html,
> how can I encode a URL in an HTML page?
thats where the FAQ code can be handy.
just make a short script that encodes our urls, and
paste them into your html.
or have your whole html file generated by this script.
or just use a oneliner:
perl -ple '$_="text to encode";s/([^\w()\'*~!.-])/sprintf "%%%02x", ord
$1/eg'
gnari