ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephane Bailliez <sbaill...@imediation.com>
Subject [PATCH] JUnit XML encoding
Date Thu, 12 Jul 2001 12:58:54 GMT

JUnit messages (and stacktrace) are written in local VM encoding while the
default XML encoding is UTF8, thus parsing these files will always fail.
(the problem was similar in XmlLogger)

XMLJUnitResultFormatter::endTestSuite(...)
- wri = new OutputStreamWriter(out);
+ wri = new OutputStreamWriter(out, "UTF8");

XMLResultAggregator::writeDOMTree(...)
- PrintWriter wri = new PrintWriter(out);
+ import java.io.OutputStreamWriter;
+ OutputStreamWriter wri = new OutputStreamWriter(out, "UTF8");

-- 
 St├ęphane Bailliez 
 Software Engineer, Paris - France 
 iMediation - http://www.imediation.com 
 Disclaimer: All the opinions expressed above are mine and not those from my
company. 


Mime
View raw message