Jan-07-2019, 01:34 AM
I was able to fix the problem, although I don't really fully understand the fix. I changed the open call to:
with open(input_file, 'r', encoding='utf8') as f:Specifying UTF8 allowed it to read the entire file. Don't know for sure if UTF8 is really the best encoding, but at least it appears to work.