You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/12/20 17:18:28 UTC

DO NOT REPLY [Bug 15574] New: - BOM is not consumed by XMLEntityManager when user sets encoding on InputSource

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=15574>.
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=15574

BOM is not consumed by XMLEntityManager when user sets encoding on InputSource

           Summary: BOM is not consumed by XMLEntityManager when user sets
                    encoding on InputSource
           Product: Xerces2-J
           Version: 2.2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: mglavass@ca.ibm.com


If a user attempts to parse a UTF-8 document containing a BOM using an 
InputSource, and sets the encoding to UTF-8 on the InputSource, 
XMLEntityManager.setupCurrentEntity() will not consume the BOM. This causes a 
parse error since the BOM is returned as the first character from UTF8Reader.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org