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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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!

Reply via email to