commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34204] New: - XMLConfiguration ignore a specific encoding in XML declaration
Date Mon, 28 Mar 2005 07:02:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34204>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34204

           Summary: XMLConfiguration ignore a specific encoding in XML
                    declaration
           Product: Commons
           Version: 1.0 Final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Configuration
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: kunihara@atomsystem.co.jp


I found that usign ConfigurationFactory, XMLConfiguration can't recognize a
specific encoding in XML declaration because of calling method 
"load(Reader in)" anytime, so I can use only one encoding depend on OS through
all xml files.

After finding this problem, I modified implementation to create
org.w3c.dom.Document by calling 
"DocumentBuilder#parse(new InputSource(Inputstrem in))" to avoid characters
garbled (gobbledygook), and then I confirmed to be recoginzed encoding.

I suggest to correct methods which inner class FileConfigurationDelegate in 
XMLConfiguration change to override "load(Inputstrem in)", and 
call "XMLConfiguration.this.load(Inputstrem in);", and method 
"load(InputStream in)" in XMLConfiguration change to call 
"DocumentBuilder#parse(new InputSource(Inputstrem in))".

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message