--- documentViewer/MpdlXmlTextServer.py 2010/09/24 12:22:15 1.38 +++ documentViewer/MpdlXmlTextServer.py 2010/09/24 13:46:28 1.40 @@ -147,12 +147,12 @@ class MpdlXmlTextServer(SimpleItem): #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) + textParam +="&highlightQuery=%s&sn=%s"%(urllib.quote(highlightQuery),sn) pagexml = self.getServerData("page-fragment.xql",textParam) #pagexml=self.template.fulltextclient.eval("/mpdl/interface/page-fragment.xql", textParam, outputUnicode=False) - pagedom = Parse(urllib.quote(pagexml)) + pagedom = Parse(pagexml) # plain text mode if mode == "text": # first div contains text