Prev: [ANN] ri_cal 0.8.6 has been released
Next: DB to CSV
From: Pen Ttt on 15 Apr 2010 23:20 there is an file(/home/pt/test/shbase.csv) in gbk not utf-8,the following is my progrmm: require 'csv' CSV.open('/home/pt/test/shbase.csv', 'r') do |row| while line=row.gets puts line end end wrong message: /usr/local/ruby/lib/ruby/1.9.1/csv.rb:1988:in `=~': invalid byte sequence in UTF-8 (ArgumentError) how to open it use csv? -- Posted via http://www.ruby-forum.com/.
|
Pages: 1 Prev: [ANN] ri_cal 0.8.6 has been released Next: DB to CSV |