struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashish Kulkarni" <>
Subject [OT] How to handle non UTF characters in XML
Date Mon, 16 Apr 2007 18:12:22 GMT
I have java class which creates an XML file from SQL resultset,
It works fine in USA, but i am having issues when this process runs in
Germany where they have non UTF characters in there database like ü or á.
How do we handle this kind of situation in XML file, i set the XML file to
be of UTF-8 type,

the java code which creates the XML file is as below

Document document = builder.newDocument();
Element root = (Element) document.createElement(rootElement);
// create element with ResultSetMetaData Name
Element record = document.createElement(rm.getColumnName(i));

// add text node with the actual value


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message