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

Couldn't parse GB2312 doc , filled in by java.io.Reader?

           Summary: Couldn't parse GB2312 doc , filled in by java.io.Reader?
           Product: Xerces-J
           Version: 1.4.4
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Other
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


If I use API:

XMLReader parser = new SAXParser();
InputSource inputSource = new InputSource(new FileReader(new File
("input.xml")));
parser.parse(inputSource);

SAXParser will throw exception when input.xml has element which name is a 
Chinese character.

But if I use API like:

XMLReader parser = new SAXParser();
InputSource inputSource = new InputSource(new FileInputStream(new File
("input.xml")));
parser.parse(inputSource);

It works.


Jack Wang

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to