Hello:
The RFC number escapes me right now, but I believe that the encoding
you are looking at is called "Quoted-Printable". It is fairly easy to
encode/decode, just follow these guidelines:
- Non-ASCII characters are encoded as =HH, where HH is the character
code, in hex (e.g. =20 is a space character).
- "Soft newlines" (i.e. line breaks imposed for transport but not part
of the original text) are marked by =CRLF (an equal sign at the end of
a line).
- All other newlines ("hard newlines") are kept as is.
So, a basic algorithm to decode would be:
1. Remove all equal signs at the end of a line, along with their
newlines (=CRLF).
2. Convert all =HH strings to their proper characters.
And I think that's it. This is right off the top of my head, and its
been a while since I last did this, but I'll check a bit later to
verify it. At least this should get you going for now.
dZ.
--
DZ-Jay [TeamICS]
On Oct 27, 2005, at 05:41, Wilfried Mestdagh wrote:
> Hello,
>
> Never worried about this, but now I have to decode some mail formatted
> like this:
>
> -=A0=A0=A0=A0=A0=A0=A0=A0=A0 here some text
> =20
>
> Is there some RFC describing how to decode this ?
>
> --
> Rgds, Wilfried
> http://www.mestdagh.biz
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be