By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,101 Members | 1,335 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,101 IT Pros & Developers. It's quick & easy.

UTF-16 character encoding/parsing using JDOM/SaxBuilder

P: n/a
I have the following code

SAXBuilder sb = new SAXBuilder(false);
sb.build(new File(filename.xml));

The filename.xml file is utf-16 encoded. However, i get
java.lang.InternalError while parsing. I suspect that the parser is
using utf-8 since the xml file has special characters. (Schröder;
Högberg T, Kågedal; Lindelöf; Fosså).

Is there any way to explicitly set the encoding to utf-16 at the
parser level using the JDOM API?

Thanks
Kumar
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.