From: Peter Eldo on 24 Jul 2010 17:36 begin File.new(path_file,"r").each { |line| puts line } rescue puts "Error read file #{subor}: #{$!}" next end In Ruby 1.9: broken UTF-8 string In Ruby 1.9.1: invalid byte sequence in UTF-8 Read files is mail in other codepage, example 1251, 1250 or 88952-2, 88592-1 utf-8 System is Debian or Archlinux. Thx
|
Pages: 1 Prev: how to get private helpers into class methods? Next: basic beginner help needed |