zenkay / simple-spreadsheet

Simple spreadsheet is a Ruby Gem reader for common spreadsheet formats: Excel (.xls, .xlsx), Open-office (.ods) and CSV (standard, excel, tab separated)
https://rubygems.org/gems/simple-spreadsheet
MIT License
98 stars 32 forks source link

invalid byte sequence in UTF-8 #12

Closed gaoguoxin closed 9 years ago

gaoguoxin commented 9 years ago

I have this error ,what can i do ?

zenkay commented 9 years ago

This seems a Ruby 1.9.x related problem. You can try to add

# encoding: UTF-8

at the beginning of your file o switch to a 2.x version of Ruby.

If this don't solve your problem o you are already using version 2.x please reopen issue.