@ Deprecated public void marshalMarshall ( Object o , OutputStream out ) { try { XStream xStream = newXStream ( ) ; out . write ( "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" . getBytes ( ) ) ; OutputStreamWriter ows = new OutputStreamWriter ( out , "UTF-8" ) ; xStream . toXML ( o , ows ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } }
Unnecessary as was a tentative UTF - 8 preamble output but still not working .