[ http://issues.apache.org/jira/browse/XERCESC-1336?page=comments#action_58901 ] Dominik Stadler commented on XERCESC-1336: ------------------------------------------
The report for XercesJ at http://issues.apache.org/jira/browse/XERCESJ-1041 was closed WONTFIX with a statement that this encoding is not proposed by the Standard and therefore won't be supported by XercesJ. > Xerces C++ defines an encoding-string that Xerces/Java refuses to parse > ----------------------------------------------------------------------- > > Key: XERCESC-1336 > URL: http://issues.apache.org/jira/browse/XERCESC-1336 > Project: Xerces-C++ > Type: Bug > Versions: 2.6.0 > Environment: Solaris 6, XercesJ 2.4 > Reporter: Dominik Stadler > Priority: Minor > > We are using Xerces C++ to create XML-Messages that are later parsed by > Xerces/Java. > When we use the define XMLUni::fgISO88591EncodingString for setting the > encoding, the XML-Message contains "ISO8859-1", because the string is defined > as > "chLatin_I, chLatin_S, chLatin_O, chDigit_8, chDigit_8, chDigit_5, chDigit_9, > chDash, chDigit_1, chNull". > When we later use Xerces/Java to parse this file, we get the following error: > [Fatal Error] :1:43: Invalid encoding name "ISO8859-1". > It seems that Xerces/Java only knows the encoding "ISO-8859-1" (with a dash), > but not "ISO8859-1" (without dash). > The XML-Specification states that "ISO-8859-1" (with a dash) SHOULD be used, > look at http://www.w3.org/TR/2004/REC-xml-20040204/#charencoding > Additionally the file src/xercesc/util/XMLUni.cpp defines more variants of > the encoding, where we are not sure which of them are supported by > Xerces/Java. > So in my opinion either Xerces C++ should not provide that define any more, > or Xerces/Java should be enhanced to accept that encoding-string. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]