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!

6

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.