----- Hans-Jörg Bibiko bibiko@eva.mpg.de a écrit :
#!/usr/bin/env ruby -wKU
require "iconv"
file = File.open("/Users/bibiko/Desktop/test.txt", "r") file.each { |line| print Iconv.iconv("UTF-8","LATIN1",line) } file.close
which outputs the test.txt content correctly. You can then define a function printLATIN1() or similar.
It's not ideal, but it's a useable workaround. Thank you very much.
JD