0

Got this error with CSV while using:

@csv = CSV.read(params[:file].path, headers: true, skip_blanks: true, encoding:'windows-1251:utf-8')
...

Error:

=> Encoding::UndefinedConversionError ("\x98" to UTF-8 in conversion from Windows-1251 to UTF-8):

How can I fix this?

Thanks!

Mohamed El Mahallawy
  • 13,024
  • 13
  • 52
  • 84

0 Answers0