A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Problem in parsing restlet response xml
Joined: Jul 30, 2008
Nov 02, 2009 23:34:05
I have created RESTlet service. But when I try to parse response it shows following exception
org.xml.sax.SAXParseException: Invalid byte 2 of 3-byte UTF-8 sequence. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at Test1.main(Test1.java:40)
I am creating xml response using com.thoughtworks.xstream.XStream.toXml()
So How should I ensure that all the content of response xml cantains only UTF-8 characters ?
Thanks in advance.
I agree. Here's the link:
subject: Problem in parsing restlet response xml
Problems connecting to LDAP from Weblogic Server: BAD_CERTIFICATE error!
First JAX-WS webservice results in UnsupportedMediaException
error on TreeMap
soap and utf-8 encoding issue
How to resolve "MalformedByteSequenceException: Invalid"
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014