I used https://github.com/roo-rb/roo to parse the CSV file in Ruby on Rails. Code is following as
data = Roo::CSV.new(obj.public_url, csv_options: {encoding: Encoding::ISO_8859_1})
There is an issue when open the CSV file encoded by UTF-8. (Unknown characters is shown.)
Is there any solution to read the CSV file of any encodings?
Or How can I get the encoding type of CSV file?