[jdom-interest] get encoding of an old xsd-file

Michael Kay mike at saxonica.com
Tue Jun 28 01:53:30 PDT 2005

> > i just have a problem. i want to find out the encoding of an old 
> > xsd-file. but i don't know how. 

In general, if you don't know the encoding of a file then there is no way to
find out. For example there is no way for a machine to tell the difference
between a file in iso-8859-1 and one in iso-8859-2. A human being can do
better, because even in a schema, accented letters are likely to appear in
the middle of words that make sense in some written language. So you just
have to try different possibilities and see if they make sense.

Michael Kay

More information about the jdom-interest mailing list