This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SAX Parser

 
Rudy Simon Yeung
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a program using SAXParserFactory and SAXParser classes to parse an xml file. The XML file is now further enhanced that could contain double bytes (e.g. Chinese characters). How should I make use of the SAX classes to parse the xml file saved in UTF-8 format?
 
Rudy Simon Yeung
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get the answer myself. Simply just change the encoding part of the xml header into "UTF-8".
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rudy Simon Yeung:
I get the answer myself. Simply just change the encoding part of the xml header into "UTF-8".


Glad we could help Rudy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic