aspose file tools
The moose likes XML and Related Technologies and the fly likes Ansi encoding XML files? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "Ansi encoding XML files?" Watch "Ansi encoding XML files?" New topic
Author

Ansi encoding XML files?

Justin Chu
Ranch Hand

Joined: Apr 19, 2002
Posts: 209
    
    1
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

Joined: Jul 10, 2001
Posts: 142
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Ansi encoding XML files?
 
Similar Threads
soap and utf-8 encoding issue
Copy file
writing UCS-2 encoded files with Java
Tomcat madness!
Unable to Write the file in UTF-8