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] - XMLDBSource: default character encoding
Date Wed, 02 Jun 2004 12:30:34 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





------- Additional Comments From vgritsenko@apache.org  2004-06-02 12:30 -------
It's not a matter of "output encoding", but a matter of "input encoding".

The problem is that XML:DB API expects character data in method:
  XMLResource.setContent(java.lang.String);

While Excalibur Source accepts only byte data:
  Source {
    public OutputStream getOutputStream();
  }

So the user of the XMLDBSource will have to encode his data from characters into
bytes when he is writing into the OutputStream, and XMLDBSource will have to
convert those bytes back into characters in order to pass data to XML:DB.

Thus, problem is when user uses different (non-default) encoding when converting
characters to bytes.

Here, the "user" of the source is forms binding, but I can't seem to find where
this documentURI parameter is used...

Mime
View raw message