From: Emmanuel Touzery Date: 2003-09-24T05:38:56+09:00 Subject: Re: [newbie] specifying file encoding On Tuesday 23 of September 2003 21:15, Yvon Thoraval wrote: > How could we secify the encoding of I/O files ??? a string is considered by ruby as encoded as . If you want to treat strings from other encodings, you can convert encoding using "iconv" (bundled with ruby 1.8); in your case, you can use iconv to convert the string to your local encoding (iso-8859-1) and then capitalize will work fine. emmanuel PS: better support for this is planned for ruby 2.0 -- "Droit devant soi, on ne peut pas aller bien loin" - Le petit prince, Antoine de Saint Exup�ry