Re: xmlrpc, utf
Patrick Wagstrom <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
I ran into a similar problem today, but it's not really a pyblosxom
problem so much as it is a python problem. There is some documentation
at:
http://www.vandervossen.net/2003/07/unicode_in_python
For my stuff I just had to make sure that I ran it through a
decode('utf-8') function. For instance, if the string name is "foo"
instead of sending "foo" you'll want to send "foo.decode('utf-8')".
The webpage I listed above did a good job of explaining it and helped my
fix my plugin. I'm not familiar with gnome-blog, so I don't know how
easy it will be add that to it (is it written in python?).
--Patrick
> hi,
> i've just installed pyblosxom.
> everything works fine but have problems with writing in utf.
> pyblosxom displays utf correctly but
> when sending the result from gnome-blog i get the message:
>
> The bloggerAPI server (http://localhost/cgi-bin/xmlrpc.cgi) reported an
> error I don't understand: '1, exceptions.UnicodeEncodeError:'ascii'
> codec can't encode character u'\u0142' in position 7: ordinal not in
> range(128)'.
>
> i use pyblosxom 0.7beta1.
>
> thanks in advance
> --
> Michal\ Adamczak <pokryfka-o/[email protected]>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/