mirror of
https://github.com/wassname/pysle.git
synced 2026-07-04 17:20:13 +08:00
BUGFIX: OS X default encoding with io.open is whack
I'm changing everything to utf-8
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ class LexicalTool():
|
||||
Builds the isle textfile into a dictionary for fast searching
|
||||
'''
|
||||
lexDict = {}
|
||||
with io.open(self.islePath, "r") as fd:
|
||||
with io.open(self.islePath, "r", encoding='utf-8') as fd:
|
||||
wordList = [line.rstrip('\n') for line in fd]
|
||||
|
||||
for row in wordList:
|
||||
|
||||
Reference in New Issue
Block a user