Re: Setting xml encoding
Martin Klang <[email protected]> Sat, 25 Oct 2003 12:23:47 +0000 (GMT)
| Newsgroups | gmane.text.xml.o-xml |
|---|---|
| Message-ID | <[email protected]> |
Hi Ken, i've lately been working on making the result XML as exact a copy of the input as possible (minus the dynamic bits of course), mostly however with respect to DTD declarations. It would be great if the interpretor picked up the encoding type of the program and used that for the output, problem is i don't know how to get to that information using DOM, or SAX. What i don't want to do is to start writing a parser to get the information out. I guess I could create an InputStream, and get the encoding from that... I'll look at getting this into the next release, due... soon! An alternative would be to specify to the interpreter which char encoding to use for the output, not sure which is preferrable. Maybe both. oh, i almost forgot myself - Ken, could you pls add this to Bugzilla - http:///bugz.pingdynasty.com Let me know if you don't know how. 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 > > _________________________________________________________________ > Add MSN 8 Internet Software to your current Internet access and enjoy > patented spam control and more. Get two months FREE! > http://join.msn.com/?page=dept/byoa > > _______________________________________________ > o-xml mailing list > o-xml-zRfLyl9bSvv/[email protected] > http://lists.pingdynasty.com/mailman/listinfo/o-xml >