changeset 78:8d36ff5717e8 master

Forcing UTF-8 when reading files - I blame Ubuntu... - Can't the world just get along and UTF-8 already?
author Jacob Alexander <haata@kiibohd.com>
date Sun, 08 May 2016 23:25:11 -0700
parents a33c07208e16
children c3297b91b60e
files kll.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 )