Created
September 19, 2012 19:46
-
-
Save purp/3751802 to your computer and use it in GitHub Desktop.
I love multilingualization ... no, really
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):002:0> lines = FasterCSV.read('/Users/purp/Desktop/some_random_file.csv'); nil | |
NotImplementedError: Please switch to Ruby 1.9's standard CSV library. It's FasterCSV plus support for Ruby 1.9's m17n encoding engine. | |
from /Users/purp/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/fastercsv-1.5.5/lib/faster_csv.rb:13:in `const_missing' | |
from /Users/purp/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/fastercsv-1.5.5/lib/faster_csv.rb:19:in `method_missing' | |
from (irb):2 | |
from /Users/purp/.rbenv/versions/1.9.3-p194/bin/irb:12:in `<main>' | |
irb(main):003:0> require 'csv' | |
=> true | |
irb(main):004:0> lines = CSV.read('/Users/purp/Desktop/some_random_file.csv'); nil | |
ArgumentError: invalid byte sequence in UTF-8 | |
from /Users/purp/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/csv.rb:1855:in `sub!' | |
from /Users/purp/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/csv.rb:1855:in `block in shift' | |
from /Users/purp/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/csv.rb:1849:in `loop' | |
from /Users/purp/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/csv.rb:1849:in `shift' | |
from /Users/purp/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/csv.rb:1791:in `each' | |
from /Users/purp/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/csv.rb:1805:in `to_a' | |
from /Users/purp/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/csv.rb:1805:in `read' | |
from /Users/purp/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/csv.rb:1411:in `block in read' | |
from /Users/purp/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/csv.rb:1354:in `open' | |
from /Users/purp/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/csv.rb:1411:in `read' | |
from (irb):4 | |
from /Users/purp/.rbenv/versions/1.9.3-p194/bin/irb:12:in `<main>' | |
# Ruby 1.9's m17n encoding engine hates me ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment