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. 

Reply via email to