||[Feb. 19th, 2007|09:14 pm]
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
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?