A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
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.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Problem in parsing restlet response xml
error on TreeMap
How to resolve "MalformedByteSequenceException: Invalid"
Problems connecting to LDAP from Weblogic Server: BAD_CERTIFICATE error!
First JAX-WS webservice results in UnsupportedMediaException
soap and utf-8 encoding issue
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014