Incompatible Character Encodings Error in Ruby 1.9
Problem: Incompatible character encodings error while importing csv files in ruby 1.9 which have data in multiple languages.
I am using rails 3 and ruby 1.9.2 in my application. While importing/parsing the CSV, I get an error “Incompatible character encodings: ASCII-8bit and UTF-8”. I quickly checked my database encoding, it was UTF-8 only and also in application.rb, I had Read on →