This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ansi encoding XML files?

 
Justin Chu
Ranch Hand
Posts: 209
1
  • 0
  • 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
  • 0
  • 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"?>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic