aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 3636
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: 12675
    
    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
 
Similar Threads
Size of a String in Bytes
NumberFormat does not show right currency symbol
new line character
escapre character for xml
Determine Character Set of XMl file using Java