old fart (brians_dad) wrote in lj_dev,
old fart
brians_dad
lj_dev

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?
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 6 comments