天蓬老师2017-04-24 09:15:20
This situation usually occurs when the encoding of the text file is inconsistent with the system encoding. You need to first figure out what the encoding of the text file is, and then
File.read('your_file.txt', 'r:YOUR_ENCODING')