On Jun 24, 2010, at 09:47, Bob Cronin wrote:

> Might anyone have some ready made PIPE code to take EBCDIC 1047 text and
> encode it for embedding in a URL per RFC 1738 (e.g. if I were to want to put
> an email address inside a URL, I'd have to encode the at-sign as %40)?
>  
From RFC 1738:

   A mailto URL takes the form:

        mailto:<rfc822-addr-spec>

   where <rfc822-addr-spec> is (the encoding of an) addr-spec, as
   specified in RFC 822 [6]. Within mailto URLs, there are no reserved
   characters.

And in the source of RFC 822 itself at:

    http://www.faqs.org/rfcs/rfc1738.html

I see:

    &lt;<A HREF="mailto:[email protected]";>[email protected]</A>&gt;

(I hate to think of what MUAs/MTAs will do to the above.)

But, more generally, this should be a simple CHANGE stage.  Just
remember to CHANGE the "%" first.

-- gil

Reply via email to