Win a copy of The Java Performance Companion this week in the Performance 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