Y
Yvon Thoraval
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 ???
#!/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 ???