XMLRPC-Plugin and encoding
Michael Scharkow <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have only used pyblosxom for a couple of days, and I got everything to
work including blogging through the metaweblog api via blogtk etc.
Since I'd like to setup a simple mail2blog script, I tried the following
python code which generally works:
#!usr/bin/python
import xmlrpclib
srv = xmlrpclib.ServerProxy("http://myserver.org/pyblosxom.cgi/RPC2")
blogID = "/"
userName = "username"
password = "****"
title = "Testing the Metaweblog-API"
body = "i am testing python xmlrpc"
srv.metaWeblog.newPost(blogID, userName, password, {'title': title,
'description': body}, xmlrpclib.True)
However, if either title or body contains umlauts or other
non-ascii-chars, no content is rendered at all, only empty txt-files. So
it looks like encoding blues...
I don't know if this is a plugin or me-not-knowing-python-issue, but I'd
be grateful for any hints on how to make this work.
Cheers,
Michael
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click