?

Log in

No account? Create an account
October 28th, 2005 - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

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

October 28th, 2005

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

lj_clients

[vodex]
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?
link7 comments|post comment

Flash Client [Oct. 28th, 2005|03:25 pm]
LiveJournal Client Discussions

lj_clients

[merlinc]
I'm trying to create an LJ client in Flash[1], and I'm hitting a small problem due to the security model of the Flash Player.

For Flash to load data from a different domain to the one that hosts the compiled swf file, a crossdomain.xml file needs to be placed on the server with the data, in this case www.livejournal.com. There's no way around that - its basically Flash's way of stopping cross site scripting.

Example crossdomain.xml
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <allow-access-from domain="www.company.com" /> </cross-domain-policy>


I need this file on a server to continue work. In the short term, is there a test site that could have this file placed on it. In the long term, what is the likelihood that I can get this file deployed onto the live livejournal.com website?

References:
Flex Live Docs: http://livedocs.macromedia.com/flex/15/flex_docs_en/00000894.htm

Macromedia Technote: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14213

Footnote:
[1] I'm actually using Macromedia Flex, but its the same thing once compiled.
link7 comments|post comment

navigation
[ viewing | October 28th, 2005 ]
[ go | Previous Day|Next Day ]