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 [EMAIL PROTECTED] 2004-06-02 12:45 ------- ...and saving from form to XMLDBSource happens in binding_example.js [1] (thanks Upayavira - I found it), function saveDocument, where TrAX API used to write to the OutputStream, without specifying any encoding at all (which is not good, me thinks). But this saveDocument() function is only a sample code, and in real application one should use ENCODING attribute [2], I'd think UTF-8. And XMLDBSource should also either always use UTF-8 to re-code bytes to chars (and we can document this in its javadoc - in getOutputStream method), or should have this configurable. So, WDYT? [1] http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/woody/samples/flow/binding_example.js?rev=1.19 [2] http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/OutputKeys.html#ENCODING
