DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10727>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10727 Encoding trouble Summary: Encoding trouble Product: Xerces2-J Version: 2.0.1 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: DOM AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Parser throws me an exception when parsing: unknown encoding name "Cp1250". This is Encoding for Central European region. When I change encoding in header of XML file to "UTF-8" everything works fine. I am using JDK 1.4. XML file is generated automaticaly and header is set through this segment of code: StringBuffer sb = new StringBuffer(); sb.append("<?xml version=\"1.0\""); String encoding = h.getEncoding(); if (encoding == null) { // Figure out the default encoding. encoding = sun.io.Converters.getDefaultEncodingName(); } // Try to map the encoding name to a canonical name. try { Charset cs = Charset.forName(encoding); encoding = cs.name(); } catch (Exception ex) {} This is the segment of code in java.util.logging.XMLFormatter class. It sets "Cp1250" encoding in header which is not recognized by Xerces. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
