#80 About the character-code when the report is made

open
nobody
None
5
2010-06-01
2010-06-01
Anonymous
No

Being able to specify in the net.sourceforge.cobertura.reporting.Main class is only character-code of the input file specification.
When you make HTML
When writing it, it is used though the HTMLReport class is used.
The character-code of IOUtil.getPrintWriter is fixed, and it is fixed to "UTF-8", and the character-code in made HTML is fixed to UTF-8.
Therefore, I want you to be able to specify the character-code when outputting it from the outside.

===================================================================================================================
net.sourceforge.cobertura.util.IOUtil
cobertura version 1.9.4.1

177 public static PrintWriter getPrintWriter(File file) throws UnsupportedEncodingException, FileNotFoundException
178 {
179 Writer osWriter = new BufferedWriter (new OutputStreamWriter(new FileOutputStream(file), "UTF-8"), 16384); ←★
180 PrintWriter pw = new PrintWriter(osWriter, false);
181 return pw;
182 }
183

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks