Mercurial > hg > MPIWGThesaurus
changeset 47:b5d89c03f958
fix unicode problem with thes_quote.
| author | casties |
|---|---|
| date | Thu, 28 Nov 2013 17:17:23 +0100 |
| parents | 7c1782d65c9b |
| children | 5d636ba6b9cb |
| files | MPIWGThesaurus.py |
| diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/MPIWGThesaurus.py Thu Nov 28 13:27:26 2013 +0100 +++ b/MPIWGThesaurus.py Thu Nov 28 17:17:23 2013 +0100 @@ -28,6 +28,7 @@ import urllib2 import urllib import json +import md5 from SrvTxtUtils import utf8ify @@ -774,9 +775,8 @@ return entry.title def thes_quote(self,txt): - import md5 - logging.debug("@*%s*@"%txt) - return md5.md5(txt.lower()).hexdigest() + logging.debug("@*%s*@"%repr(txt)) + return md5.md5(utf8ify(txt.lower())).hexdigest() def formatTag(self,tag):
