Why do I get an “Invalid Byte Sequence in UTF-8” error reading a text file?

前端 未结 5 1629
刺人心
刺人心 2021-01-26 18:26

I\'m writing a Ruby script to process a large text file, and keep getting an odd encoding error. Here\'s the situation:

input_data = File.new(in_path, \'r\').rea         


        
5条回答
提交回复
热议问题