From 6135cbb8329eff480c4100a1b46557f690ea604b Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Sun, 8 May 2016 23:25:11 -0700 Subject: [PATCH] Forcing UTF-8 when reading files - I blame Ubuntu... - Can't the world just get along and UTF-8 already? --- kll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kll.py b/kll.py index 61fda0c..1ad0244 100755 --- a/kll.py +++ b/kll.py @@ -691,7 +691,7 @@ def parse( tokenSequence ): def processKLLFile( filename ): - with open( filename ) as file: + with open( filename, encoding='utf-8' ) as file: data = file.read() try: tokenSequence = tokenize( data ) -- 2.39.2