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
I fail to get an error here on Linux even when the input file is not UTF-8. (I'm using Ruby 1.9.2, as well.)
Logically, either this problem is linked with OS-X, or it's something to do with your input data. Does it happen regardless of the data in the input file?
(I realise that this is not a proper answer, but I lack the rep to add a comment. And since no-one has responded yet, I thought it better than nothing...)