Actually, before doing so, can you please try to move the call to setEncoding()
before any call to setWriter(). Regards Werner Werner Guttmann wrote: > Hi Pablo, > > can you please create a new Jira issue at > > http://jira.codehaus.org/browse/CASTOR > > and attach a minimal working test case. > > Thanks in advance > Werner > > pablo fernandez wrote: >> Hi I have the following code and I want the response of the marshaller to be >> in UTF-16 (actually its in UTF-8 I think by default) >> >> Code: >> http://pastie.org/670624 >> >> I've tried to do marshaller.setEncoding('UTF-16') but I get an exception >> like this one: >> >> *java.lang.IllegalStateException: encoding cannot be set if you've passed in >> your own DocumentHandler at >> org.exolab.castor.xml.Marshaller.setEncoding(Marshaller.java:2387)* >> >> Thanks a lot! > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

