Log in

No account? Create an account
XML-RPC unicode - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

XML-RPC unicode [Oct. 28th, 2005|02:06 pm]
LiveJournal Client Discussions


Hi, I'm slowly developing a LJ-to-Wordpress importer using XML-RPC (see original post where I discover the interface exists), and suddenly I am getting the following:

Client error: Protocol version mismatch: Cannot display/edit a Unicode post with a non-Unicode client. Please see http://www.livejournal.com/support/encodings.bml for more information.

That page says:

If there is a newer version of your client program that supports Unicode, upgrade. If not, you will be able to edit entries which contain ASCII symbols only (basically
the Latin alphabet and the usual punctuation signs). For entries any fancy symbols or other languages you will have to resort to editing via the web interface, which works fine in any case.

My dev environment hasn't changed, so at first I thought LJ had gone to some sort of Unicode-only interface. However, upgrading to the latest version of the popularhttp://phpxmlrpc.sourceforge.net/ (which is what I'm using) hasn't resolved this. (FWIW, I have also tried setting ['xmlrpc_defencoding'] to 'ISO-8859-1' as the docs state to force client encoding.)

I have no idea why the script has ceased working. Can anyone help? Should I be using a different PHP XML_RPC library, or has my environment changed somehow without me realising?

From: evan
2005-11-03 07:31 pm (UTC)
Yeah, try using <code> unless the whitespace is significant.
(Reply) (Parent) (Thread)
[User Picture]From: vodex
2005-11-04 01:33 pm (UTC)
This is the second time I have submitted a post to this community, and the second time it has come out mangled after modding. Sorry, but at least this time I can edit the post...
(Reply) (Parent) (Thread)