cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Goers (JIRA)" <j...@apache.org>
Subject [jira] Updated: (COCOON-1165) XMLDBSource: default character encoding
Date Tue, 25 Oct 2005 05:40:57 GMT
     [ http://issues.apache.org/jira/browse/COCOON-1165?page=all ]

Ralph Goers updated COCOON-1165:
--------------------------------

    Bugzilla Id:   (was: 29061)
      Component: Blocks: XML-DB
                     (was: Blocks: (Undefined))
    Description: 
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!

  was:
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!


> XMLDBSource: default character encoding
> ---------------------------------------
>
>          Key: COCOON-1165
>          URL: http://issues.apache.org/jira/browse/COCOON-1165
>      Project: Cocoon
>         Type: Bug
>   Components: Blocks: XML-DB
>     Versions: 2.1.4
>  Environment: Operating System: All
> Platform: PC
>     Reporter: Timur Izhbulatov
>     Assignee: Cocoon Developers Team
>     Priority: Minor
>  Attachments: XMLDBSource.java.diff, XMLDBSource.java.patch, test.txt
>
> 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!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message