Add utf-8 decode for postgres query

This commit is contained in:
Jack Stdin 2016-02-15 12:40:34 +03:00
parent de42a93ed0
commit 9924c51c80

View File

@ -44,7 +44,7 @@ class WordEntry:
def __init__(self, db, word):
self.db = db
self.word = unicode(word)
self.word = str(word).decode('utf8')
self.word_len = len(unicode(self.word))
self.variations = []
self.scname = None