瀏覽代碼

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 )