cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29061] New: - XMLDBSource: default character encoding
Date Tue, 18 May 2004 10:58:23 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=29061>.
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=29061

XMLDBSource: default character encoding

           Summary: XMLDBSource: default character encoding
           Product: Cocoon 2
           Version: 2.1.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: blocks
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: tim@yxo.ru


The org.apache.cocoon.components.source.impl.XMLDBSource.XMLDBOutputStream.close
() method uses the java.io.ByteArrayOutputStream.toString() method to translate
 bytes into characters. IMO, it should use the
java.io.ByteArrayOutputStream.toString(String encoding) method to prevent
corruption of non-us data. At the same time, there should be an XMLDBSource
class property that would set the encoding. If it is not set the
java.io.ByteArrayOutputStream.toString() method should still be used.

Please,see
http://archives.real-time.com/pipermail/cocoon-users/2004-May/051561.html for
more info.

Good luck!

Mime
View raw message