# HG changeset patch # User Jacob Alexander # Date 1462775111 25200 # Node ID 8d36ff5717e88b58b64809aa540347a3e60886e2 # Parent a33c07208e166a2c23a8a3d03e3acc322ea6a8a3 Forcing UTF-8 when reading files - I blame Ubuntu... - Can't the world just get along and UTF-8 already? diff -r a33c07208e16 -r 8d36ff5717e8 kll.py --- a/kll.py Sun May 08 17:49:05 2016 -0700 +++ b/kll.py Sun May 08 23:25:11 2016 -0700 @@ -691,7 +691,7 @@ def processKLLFile( filename ): - with open( filename ) as file: + with open( filename, encoding='utf-8' ) as file: data = file.read() try: tokenSequence = tokenize( data )