On Thu, 30 Jan 2003 17:56:22 +0000,
   MENON Jean-Francois <jean-francois.menon / meteo.fr> wrote:

> I have documents to parse with ruby. there are strange codes like this :
> 
>=E7a
>=E0
>=0A=
>
> how can  I handle them with ruby ? (I display fonts in iso-latin1 with
> tk)

That looks like MIME encoded text as it is used in mails. If so it
can easily be decoded by interpreting each =XX as the character with
corresponding hexadecimal number XX.

By the way: You are dealing with FRENCH texts (written on a Mac)?

In '=E7a' the '=E7' is latin small letter c with cedilla (,ca)
'=E0' is latin small letter a with grave (`a)
In '=OA=' the '=OA' is a line feed, the terminating '=' means that
logical line is continued in next physical line.

The last point may give rise to some issues. It may be necessary to
either replace that line feed (ASCII 10) with a carriage return
(ASCII 13) or with CR+LF (depends on Tk, unfortunately there are
three ways to encode that text continues at the beginning of next
physical line.

Josef 'Jupp' Schugt