Werner, It still throws that exception, I'll try to create the issue with the test case sometime today.
Do you use an specific test framework (TestNG, Junit 3 or 4) or anyone will do? Thanks On Tue, Nov 3, 2009 at 6:46 AM, Werner Guttmann <[email protected]>wrote: > 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 > > > -- Fernandez, Pablo.

