From: yvon.thoravallist@... (Yvon Thoraval) Date: 2003-09-24T04:15:02+09:00 Subject: [newbie] specifying file encoding i have a very simple script in ISO-8859-1 : #!/usr/bin/ruby w = "�milion" fo = File.open("capitalize.txt", File::RDWR|File::CREAT,0600) fo.puts w.capitalize fo.close resulting in : �milion E grave instead of Eacute But the prob arroses because the output file "capitalize.txt" is in MacOS Roman... How could we secify the encoding of I/O files ??? In fact, the prob is worth than i thought if i change the encoding of the file for the script to MacOS Roman the w.capitalize is written as : �milion that's to say NO capitalisation on accentuated chars ??? -- Yvon