B
Brahim Machkour
Hello,
I'm using JAXB to export/import data from/to a DB through XML files.
Everything is working well. I would like also to be able to edit
the file using an editor, typically XMLSpy. The problem is that
within the XML the arabic text is encoded with strings such as
"& #1578;& #1575;& #1585"... and using the editor, arabic does not
appear, only the sequence of ascii strings i just mentioned. I edit
manually and replace with arabic charater, then they show up in
XMLSpy. I guess it's an encoding problem at marshalling ?
I've tried anything I can at the marshalling step using :
still the same thing. tries UTF-8, CP1256, Windows-1256, ...
Is there a way to have arabic charaters directly showing up in
the XML ?
Thank you for any help
Brahim.
I'm using JAXB to export/import data from/to a DB through XML files.
Everything is working well. I would like also to be able to edit
the file using an editor, typically XMLSpy. The problem is that
within the XML the arabic text is encoded with strings such as
"& #1578;& #1575;& #1585"... and using the editor, arabic does not
appear, only the sequence of ascii strings i just mentioned. I edit
manually and replace with arabic charater, then they show up in
XMLSpy. I guess it's an encoding problem at marshalling ?
I've tried anything I can at the marshalling step using :
Marshaller m = jc.createMarshaller();
m.setProperty( Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE );
m.setProperty( Marshaller.JAXB_ENCODING, "ISO-8859-6" );
m.marshal(xmldata, new FileOutputStream(xmlfile));
still the same thing. tries UTF-8, CP1256, Windows-1256, ...
Is there a way to have arabic charaters directly showing up in
the XML ?
Thank you for any help
Brahim.