Sorry I didn't mention that if you don't specify any encoding,
in xml it defaults to UTF-8.
That's a common mistake to SAVE a file in latin1 (file that's including
characters above ASCII 127) and not to specify ISO-8859-1, then parser tries
to read the file in UTF-8 (default) and fails of course.
with respect,
Toni Uusitalo
"Toni Uusitalo" <to**************@luukkudot.kom> wrote in message
news:LL***************@reader1.news.jippii.net...
Rule of thumb:
- if you specify UTF-8 encoding in xml declaration i.e. encoding="UTF-8"
then
you must SAVE your document in UTF-8.
- Alternatively you can specify encoding="ISO-8859-1" in xml declaration
for example and then you can save your doc in plain latin1 (same as
ISO-8859-1) encoding - this should work for you. Choosing UTF-8 at saving stage is an
option
too of course.
with respect,
Toni Uusitalo
"Ndeye" <ns******@hotmail.com> wrote in message
news:93**************************@posting.google.c om... hi everybody,
I would like to parse an xml file containing some accentuated
characters like è. This causes my java program to throw this error :
file:/c:/dxl/Abbink.xml; Line 216; Column 26
XSL Error: Could not parse c:\dxl\Abbink.xml document!
XSL Error: SAX Exception
Invalid UTF-8 code. (bytes: 0xffffffe9 0x20)
How can I take this in account ?
Thanks in advance
Ndeye