Re: Setting xml encoding
Martin Klang <[email protected]> Mon, 3 Nov 2003 16:17:14 +0000 (GMT)
| Newsgroups | gmane.text.xml.o-xml |
|---|---|
| Message-ID | <[email protected]> |
Ken, with the new release you can specify the output encoding using the command line option -encoding However, I've not figured out a way to get information about the original program file encoding from the XML parser. What i wanted to do was to create a SAX InputSource, and simply do getEncoding(). Unfortunately this seems to always return null. Let me know if you know of any other way to get this information without manually parsing the xml declaration. cheers, /m Martin Klang http://www.o-xml.org - the object-oriented XML programming language On Tue, 21 Oct 2003, Ken McCloskey wrote: > Martin, > > Is there a way to set the encoding of the o-xml output file? > > For example, how could I output the following: > > <?xml version="1.0" encoding="iso-8859-1"?> > instead of > <?xml version="1.0" encoding="UTF-8"?> > > at the top of the resulting xml file? > > Thanks, Ken