[jdom-interest] Setting Encoding

Jason Hunter jhunter at xquery.com
Thu Dec 30 12:11:48 PST 2004


That method moved from the XMLOutputter to the Format class used by the 
outputter.  I'll update the FAQ entry.

-jh-

Anand, Rajesh wrote:

>         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 
> <http://www.ml.com/email_terms/>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@yourhost.com


More information about the jdom-interest mailing list