Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

[jdom-interest] Setting Encoding

Anand, Rajesh

2004-12-30

Replies:

Setting Encoding

        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@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/

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.