Преглед изворни кода

Forcing UTF-8 when reading files

- I blame Ubuntu...
- Can't the world just get along and UTF-8 already?
master
Jacob Alexander пре 8 година
родитељ
комит
6135cbb832
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      kll.py

+ 1
- 1
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 )