here's a fix which works for me
Jon Stevens wrote:
> Here is the little test program:
>
> import java.io.*;
> import java.lang.*;
> import java.util.*;
> import org.jdom.*;
> import org.jdom.input.*;
> import org.jdom.output.*;
>
> public class Test
> {
> public static void main (String[] args)
> {
> try
> {
> Document d = new SAXBuilder().build(args[0]);
> XMLOutputter outp = new XMLOutputter("", false);
> outp.setEncoding("ISO-8859-1");
> FileWriter fw = new FileWriter("test.html");
FileWriter uses the system default encoding which is MacRoman (latin-1)
roll your own "ISO-8859-1" FileWriter
OutputStreamWriter fw=new OutputStreamWriter(
new FileOutputStream("text.html"),"ISO-8859-1");
>
> outp.output(d, fw);
> fw.close();
> }
> catch (Exception e)
> {
> }
> }
> }
- robert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]