updated to use UTF-8

Former-commit-id: a9b40a63905122413c896c8d41b777c11549544d
This commit is contained in:
Jeremy Long
2013-11-30 17:23:00 -05:00
parent e2c78e546d
commit 1b1f5203f1
3 changed files with 3 additions and 2 deletions

View File

@@ -133,6 +133,7 @@ public class SuppressionHandler extends DefaultHandler {
rule.addCve(currentText.toString());
} else if (CVSS_BELOW.equals(qName)) {
final float cvss = Float.parseFloat(currentText.toString());
rule.addCvssBelow(cvss);
}
}

View File

@@ -82,7 +82,7 @@ public class SuppressionParser {
xmlReader.setContentHandler(handler);
final InputStream inputStream = new FileInputStream(file);
final Reader reader = new InputStreamReader(inputStream); //, "UTF-8");
final Reader reader = new InputStreamReader(inputStream, "UTF-8");
final InputSource in = new InputSource(reader);
//in.setEncoding("UTF-8");

View File

@@ -83,7 +83,7 @@ public class SuppressionHandlerTest {
xmlReader.setContentHandler(handler);
InputStream inputStream = new FileInputStream(file);
Reader reader = new InputStreamReader(inputStream); //, "UTF-8");
Reader reader = new InputStreamReader(inputStream, "UTF-8");
InputSource in = new InputSource(reader);
//in.setEncoding("UTF-8");