AW: PyDS RPC fix
"Bauer, Georg" <[email protected]> Fri, 7 Jan 2005 12:14:38 +0100
| Newsgroups | gmane.comp.pythin.pyds.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! * XML-RPC metaWeblog ... newPost(), editPost() with utf-8 text. * getPost() will fail when get yet rendered article. (cannot resolve 'permaLink') The second one can only happen if your posting is neither for the homepage nor the categories pages. But I fixed it as in your patch. The first one is applied, too. Although I am not sure about that one - >And best solution is store texts as unicode, not utf-8! But this >will be hard work. ;) You can't store unicode strings - to store them you will allways have to encode them somehow. And that encoding is either iso-8859-1 if you don't need unicode strings or utf-8. There are other unicode encodings (utf-16 and utf-32 and some more obscure onese), but those aren't supported in most librarties. utf-8 is the best choice there is. Unicode strings in Python can only exist during runtime. There is no way to store them directly without encoding them (even pickling will do some encoding first). >Patch: http://harucchi.com/tomo/static/pyds-20050107.patch >Japanese memo: http://harucchi.com/tomo/weblog/2005/01/07.html#P46 bye, Georg