This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Java in General and the fly likes Determine Character Set of XMl file using Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Determine Character Set of XMl file using Java" Watch "Determine Character Set of XMl file using Java" New topic
Author

Determine Character Set of XMl file using Java

Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3640
I have a XML file. I don�t know using which Character Set it was written. If I want to know the Character Set of the file, how to achieve this using Java?


My blood is tested +ve for Java.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 13018
    
    5
Is there an "encoding" attribute in the <?xml declaration?
Bill
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Moving to our XML forum...


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Determine Character Set of XMl file using Java
 
It's not a secret anymore!