Log in

No account? Create an account
LiveJournal Development [entries|archive|friends|userinfo]
LiveJournal Development

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

February 19th, 2007

(no subject) [Feb. 19th, 2007|09:14 pm]
LiveJournal Development
I'm sure this has been asked and answered at some point. I'm trying to write a simple client utility in java, using the apache xmlrpc 3.0 libraries and java 5.0 I simply cannot get past the encoding errors on some pages. It says:

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.'.

The code seems simple enough, and it works for everything except some quote marks and some western european characters, the ones with accents for example:
XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setEncoding("UTF-16"); // <-- I think i am setting unicode here
config.setServerURL(new URL("http://www.livejournal.com/interface/xmlrpc/"));
XmlRpcClient client = new XmlRpcClient();
... put some stuff into a vector and pass it along

Maybe a different xml-rpc library? Has anyone had success doing this in Java?
link6 comments|post comment

[ viewing | February 19th, 2007 ]
[ go | Previous Day|Next Day ]