Re: xmlrpclib and decoding entity references

2005-05-04 Thread Bengt Richter
On 4 May 2005 08:17:07 -0700, "Chris Curvey" <[EMAIL PROTECTED]> wrote: >Here is the solution. Incidentally, the client is Cold Fusion. > I suspect your solution may be not be general, though it would seem to satisfy your use case. It seems to be true for python's latin-1 that all the first 256 c

Re: xmlrpclib and decoding entity references

2005-05-04 Thread Bengt Richter
On 3 May 2005 08:07:06 -0700, "Chris Curvey" <[EMAIL PROTECTED]> wrote: >I'm writing an XMLRPC server, which is receiving a request (from a >non-Python client) that looks like this (formatted for legibility): > > > >echo > > > >Le Martyre de Saint André
avec inscription >'Le Dominiquain.' et

Re: xmlrpclib and decoding entity references

2005-05-04 Thread Chris Curvey
Here is the solution. Incidentally, the client is Cold Fusion. import re import logging import logging.config import os import SimpleXMLRPCServer logging.config.fileConfig("logging.ini") class LoggingXMLRPCRequestHandler(S

Re: xmlrpclib and decoding entity references

2005-05-04 Thread Chris Curvey
yep, I'm using SimpleRPCServer, but something is getting messed up between the receipt of the XML stream and the delivery to my function. The "normal" entity references (like < and &) are handled OK, but the character references are not working. For instance, "André" is received by the server, bu

Re: xmlrpclib and decoding entity references

2005-05-03 Thread Kent Johnson
Chris Curvey wrote: > I'm writing an XMLRPC server, which is receiving a request (from a > non-Python client) that looks like this (formatted for legibility): > > > > echo > > > > Le Martyre de Saint André
avec inscription > 'Le Dominiquain.' et 'Le tableau fait par le dominicain, > d'ap

Re: xmlrpclib and decoding entity references

2005-05-03 Thread John Ridley
Chris Curvey wrote on Tue, 03 May 2005 08:10:50 -0700: > Can anyone give me a lead on how to convert the entity references > into something that will make it through to my method call? The xmllib module has a function for doing this: >>> import xmllib >>> xmllib.XMLParser().translate_references(

xmlrpclib and decoding entity references

2005-05-03 Thread Chris Curvey
I'm writing an XMLRPC server, which is receiving a request (from a non-Python client) that looks like this (formatted for legibility): echo Le Martyre de Saint André
avec inscription 'Le Dominiquain.' et 'Le tableau fait par le dominicain, d'après son dessein à... est à Rome, à l'église