Write characters like $ or € to unicode form while writing data with XMLStreamWriter

225 Views Asked by At

i am using an XMLStreamWriter object to write some data into an xml file. My problem is that when i encounter a special character like $ or €, it remains as it is. Is it possible to write this kind of characters in their unicode form ? as an example ; writing \u0024 instead of $ and writing \u20ac instead of €. I am using the encoding "UTF-8" and when JBoss is used, i am using the "com.bea.xml.stream.XMLOutputFactoryBase" as the "javax.xml.stream.XMLOutputFactory".

0

There are 0 best solutions below