Java Mailing List Archive

http://www.junlu.com/

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

[jdom-interest] how to discover the encoding of an XML

Ing. Terenzio Berni

2004-07-23


It is possible to know what encoding was used while building a Document
(via SaxBuilder).
ie:
I have an XML that starts with the declaration:
<?xml version="1.0" encoding="UTF-8"?>
and I need to know that the encoding used was UTF-8.

Regards, Terenzio
--
/"\   Ing. Terenzio Berni
\ /   ASCII Ribbon Campaign
X  against HTML email & vCards
/ \
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.