[jdom-interest] Setting Encoding

Anand, Rajesh Rajesh_Anand at ml.com
Thu Dec 30 09:14:14 PST 2004


	Folks,

	I've a Java program that creates a XML document on the iSeries
using JDOM.

	I noticed that the XML when produced does not contain the
following line.

	<XML Version = "1.0" encoding = "UTF-8">

	When looked at JDOM FAQ, it appears that I could use
outputter.setEncoding() method to set.

	However, when I used this method as
outputter.setEncoding("UTF-8"), the program failed compilation as it
could not find the method.

	Any ideas what I am able to do here. I thought the default
encoding and version are produced by JDOM.

	I'm using JDOM ver 1.0.

	Thanks for your help in advance.

	rgds,	

Rajesh Anand
Email:Rajesh_anand at ml.com 
--------------------------------------------------------
 
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. Click here for important additional terms relating to this e-mail.     http://www.ml.com/email_terms/ 
--------------------------------------------------------
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20041230/b4ab3887/attachment.htm


More information about the jdom-interest mailing list