Forcing UTF-8 when reading files
- I blame Ubuntu... - Can't the world just get along and UTF-8 already?
This commit is contained in:
parent
2eb41e3a13
commit
6135cbb832
2
kll.py
2
kll.py
@ -691,7 +691,7 @@ def parse( tokenSequence ):
|
|||||||
|
|
||||||
|
|
||||||
def processKLLFile( filename ):
|
def processKLLFile( filename ):
|
||||||
with open( filename ) as file:
|
with open( filename, encoding='utf-8' ) as file:
|
||||||
data = file.read()
|
data = file.read()
|
||||||
try:
|
try:
|
||||||
tokenSequence = tokenize( data )
|
tokenSequence = tokenize( data )
|
||||||
|
Reference in New Issue
Block a user