# HG changeset patch # User casties # Date 1385655443 -3600 # Node ID b5d89c03f9585013d464f0240f6d82751b77186f # Parent 7c1782d65c9bd370eff2d871e02577dd294cbf5e fix unicode problem with thes_quote. diff -r 7c1782d65c9b -r b5d89c03f958 MPIWGThesaurus.py --- 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):