Xalan failing to escape non UTF-8 characters PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3047 *** shadow/3047 Mon Aug 13 07:59:22 2001 --- shadow/3047.tmp.6942 Tue Aug 14 07:46:36 2001 *************** *** 155,158 **** getting different output? Are you sending the output to a file using -out and then using a hex editor or what? ! Gary --- 155,178 ---- getting different output? Are you sending the output to a file using -out and then using a hex editor or what? ! Gary ! ! ------- Additional Comments From [EMAIL PROTECTED] 2001-08-14 07:46 ------- ! OK, it looks like using a Writer is the cause for the character encoding ! problem. ! ! One of our java developers switched to a stream in the Servlet that calls xalan ! ! // Doesn't work right ! BufferedWriter out = new BufferedWriter(new FileWriter(outFileName)); ! transformer.transform(new StreamSource(new File(xmlFileName)), new ! StreamResult(out)); ! ! // Works correctly ! FileOutputStream out = new FileOutputStream(outFileName); ! transformer.transform(new StreamSource(new File(xmlFileName)), new ! StreamResult(out)); ! ! Gary, Scott, Joe, appreciate your help on this one. ! !
