[Moin-user] xmlrpc putPage utf-8 returns expat error

Max Campos lists at bpsw.biz
Fri Sep 2 02:52:36 EDT 2011


Hi Folks,

I'm having trouble using the XMLRPC putPage under Moin 1.9.3 with non-7 bit ASCII text.  Has anyone successfully gotten this to work?  Any hints?  Thanks for any help!

Here is the XML message I'm sending (same as attached file):

<?xml version="1.0" encoding="utf-8"?><methodCall><methodName>putPage</methodName><params><param><value><string>MaxCampos</string></value></param><param><value><string>Limón
 Thu Sep  1 23:43:51 PDT 2011
</string></value></param></params></methodCall>

… and here is the error I receive.

ERROR 1: <class 'xml.parsers.expat.ExpatError'>: not well-formed (invalid token): line 1, column 171
  File "/usr/local/lib/python2.6/site-packages/MoinMoin/xmlrpc/__init__.py", line 140, in process
    params, method = xmlrpclib.loads(data)

  File "/usr/local/lib/python2.6/xmlrpclib.py", line 1182, in loads
    p.feed(data)

  File "/usr/local/lib/python2.6/xmlrpclib.py", line 601, in feed
    self._parser.Parse(data, 0)

Notes:
1) If I replace the ó with ascii 'o' (i.e. remove any non-7 bit ascii chars), then this error goes away.
2) If I run "xmlwf" (libexpat's tool for validating xml) on the attached file, it validates OK.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20110901/d89a38cc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_msg.xml
Type: application/xml
Size: 253 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/moin-user/attachments/20110901/d89a38cc/attachment.xml>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20110901/d89a38cc/attachment-0001.html>


More information about the Moin-user mailing list