<HTML xmlns:eXclaimer="http://www.exclaimer.co.uk">
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-16">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-16">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6603.0">
<TITLE>Setting Encoding</TITLE>
</HEAD><BODY ><DIV>
<!-- Converted from text/rtf format -->
<P> <FONT SIZE=2 FACE="Arial">Folks,</FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial">I've a Java program that creates a XML document on the iSeries using JDOM.</FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial">I noticed that the XML when produced does not contain the following line.</FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial"><XML Version = "1.0" encoding = "UTF-8"></FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial">When looked at JDOM FAQ, it appears that I could use outputter.setEncoding() method to set.</FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial">However, when I used this method as outputter.setEncoding("UTF-8"), the program failed compilation as it could not find the method.</FONT></P>
<P> <FONT SIZE=2 FACE="Arial">Any ideas what I am able to do here. I thought the default encoding and version are produced by JDOM.</FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial">I'm using JDOM ver 1.0.</FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial">Thanks for your help in advance.</FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial">rgds, </FONT>
</P>
<P><B><FONT SIZE=2 FACE="Arial">Rajesh Anand</FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">Email:Rajesh_anand@ml.com</FONT></B>
</P>
</DIV>
<DIV>
<HR COLOR="gray">
</DIV>
<DIV>If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. <A HREF="http://www.ml.com/email_terms/">Click here </A>for important additional terms relating to this e-mail. <A HREF="http://www.ml.com/email_terms/">http://www.ml.com/email_terms/</A></DIV>
<DIV>
<HR COLOR="gray">
</DIV></BODY></HTML>