Answer the question
In order to leave comments, you need to log in
How to output Russian letters from a file to the Ruby console?
Hello!
I'm just starting to learn ruby, I had such a question.
There is a csv file, I'm parsing it and I want to output the contents to the console.
But instead of the Russian text, encoding errors appear.
Moreover, if you simply write puts "Hi" - Russian letters are displayed correctly.
The file encoding is utf-8.
How to fix it?
Ruby version 2.1.7
Thanks.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question