On Dec 30, 1:02=A0am, Alain Matthes <al... / pomme.com> wrote:
> A question : =A0with python, I've a the line =A0 =A0# -*- coding: utf-8 -=
*-
> Do Ruby works without problem =A0with utf8 encoding ?
> (I work with Ruby 1.8.7 on OS X.)

Given your ruby version you'll be fine until you start using
characters with code points > 127

Macintosh:~ $ ruby  -e'almo=E7o =3D "cerveja"; puts almo=E7o'
-e:1: Invalid char `\303' in expression
-e:1: Invalid char `\247' in expression
-e:1: Invalid char `\303' in expression
-e:1: Invalid char `\247' in expression
-e:1: warning: parenthesize argument(s) for future version
Macintosh:~ $ ruby  -KUe'almo=E7o =3D "cerveja"; puts almo=E7o
cerveja

Otherwise you'll have to set $KCODE (-K) to "U" for utf8 mode.