Hello,
My JibX works really well, thanks again to all of you who made this great library.
Now, I am facing the folling problem: I have noticed that if I try to marshall an attribute that contains the Euro character '€', the resulting XML message displays '?' instead :-(
Here is my code:-
MyObject myObject = new MyObject("here it is: €");
Object obj = myObject
IBindingFactory bfact = BindingDirectory.getFactory(MyObject.class);
ByteArrayOutputStream out = new ByteArrayOutputStream();
IMarshallingContext mctx = bfact.createMarshallingContext();
mctx.setOutput(out, "UTF-8");
mctx.marshalDocument(obj, "UTF-8", null, out);
System.out.println(out.toString());
I have seen in the JibX documentation that there is something called the UTF8StreamWriter - do I need to use it? If yes, what would the code look like?
Thanks for your help
CaraMail, le seul webmail à vous offrir des fils d'info RSS sans aucun logiciel à installer!
