BUGFIX: OS X default encoding with io.open is whack

I'm changing everything to utf-8
This commit is contained in:
timmahrt
2016-06-29 23:58:38 +02:00
parent 81257bdfaf
commit 5d70367bfc
+1 -1
View File
@@ -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: