how to use csv to open file in gbk code
there is an file(/home/pt/test/shbase.csv) in gbk not utf-8,the
following is my progrmm:
CSV.open('/home/pt/test/shbase.csv', 'r') do |row|
/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/.
|All times are GMT. The time now is 08:45 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.