# HG changeset patch # User abukhman # Date 1285329335 -7200 # Node ID 60f0cbd12d270e58160ff4f54001b6cbd5fe74f9 # Parent bc44cf97dfdc69ebff85497de8cd68bc160ad6e6 *** empty log message *** diff -r bc44cf97dfdc -r 60f0cbd12d27 MpdlXmlTextServer.py --- a/MpdlXmlTextServer.py Thu Sep 23 17:30:42 2010 +0200 +++ b/MpdlXmlTextServer.py Fri Sep 24 13:55:35 2010 +0200 @@ -147,9 +147,10 @@ #logging.debug("documentViewer (characterNormalization) characterNormalization: %s"%(characterNormalization)) textParam = "document=%s&mode=%s&pn=%s&characterNormalization=%s"%(docpath,textmode,pn,characterNormalization) if highlightQuery is not None: - textParam +="&highlightQuery=%s&sn=%s"%(highlightQuery,sn) + textParam1 =urllib.quote(textParam) + textParam1 +="&highlightQuery=%s&sn=%s"%(highlightQuery,sn) - pagexml = self.getServerData("page-fragment.xql",textParam) + pagexml = self.getServerData("page-fragment.xql",textParam1) #pagexml=self.template.fulltextclient.eval("/mpdl/interface/page-fragment.xql", textParam, outputUnicode=False) pagedom = Parse(pagexml)