• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Determine Character Set of XMl file using Java

 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there an "encoding" attribute in the <?xml declaration?
Bill
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our XML forum...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic