You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by bu...@apache.org on 2004/05/21 14:21:14 UTC
DO NOT REPLY [Bug 23173] -
Character encoding/declaration mismatch using XML:DB API
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=23173>.
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=23173
Character encoding/declaration mismatch using XML:DB API
vgritsenko@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From vgritsenko@apache.org 2004-05-21 12:21 -------
Can't reproduce on Xindice 1.1b4, and it won't be fixed in 1.0.
One of the problems I'd noticed is that files is being read / written in this
demo program is using default encoding, which is not UTF8. This will cause data
corruption. UTF8 files should be read / written using
InputStreamReader/OutputStreamWriter:
BufferedReader in = new BufferedReader(new InputStreamReader(new
FileInputStream(id), "UTF8"));
PrintWriter out = new PrintWriter(new OutputStreamWriter(new
FileOutputStream(id + ".out"), "UTF8"));
This could have been the cause of the failure, but I can't verify this because
code works for me anyway.