This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ansi encoding XML files?

 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to use ANSI encoding XML files?
What should be the header be?
By default, if the xml file is in ANSI encoding and there's no <?xml?> header, java parsers will throw a UTF8 reading error..
 
Christophe Lee
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe by default xml files are UTF-8.
Try:
<?xml version="1.0" encoding="ISO-8859-1"?>
or this?
<?xml version="1.0" encoding="windows-1252"?>
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic