invalid byte sequence in UTF-8 #7

Open
dmowcomber opened this Issue Apr 5, 2013 · 0 comments

1 participant

@dmowcomber

I was getting an encoding error with a certain csv file "invalid byte sequence in UTF-8". Adding ":ISO-8859-1" when opening the file fixed my problem

if ARGV.size > 0
    IN = File.open(ARGV[0], "r:ISO-8859-1")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment