[HtmlUnit] SVN: [14460] trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/ runners/TestCaseCorrector.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[HtmlUnit] SVN: [14460] trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/ runners/TestCaseCorrector.java

rbri
Revision: 14460
          http://sourceforge.net/p/htmlunit/code/14460
Author:   rbri
Date:     2017-05-17 17:16:23 +0000 (Wed, 17 May 2017)
Log Message:
-----------
our source files are utf-8 encoded

Modified Paths:
--------------
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/runners/TestCaseCorrector.java

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/runners/TestCaseCorrector.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/runners/TestCaseCorrector.java 2017-05-17 17:15:29 UTC (rev 14459)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/runners/TestCaseCorrector.java 2017-05-17 17:16:23 UTC (rev 14460)
@@ -14,7 +14,7 @@
  */
 package com.gargoylesoftware.htmlunit.runners;
 
-import static java.nio.charset.StandardCharsets.ISO_8859_1;
+import static java.nio.charset.StandardCharsets.UTF_8;
 
 import java.io.File;
 import java.io.IOException;
@@ -51,7 +51,7 @@
         final String testRoot = "src/test/java/";
         final String browserString = browserVersion.getNickname().toUpperCase(Locale.ROOT);
         final File file = new File(testRoot + method.getDeclaringClass().getName().replace('.', '/') + ".java");
-        final List<String> lines = FileUtils.readLines(file, ISO_8859_1);
+        final List<String> lines = FileUtils.readLines(file, UTF_8);
         final String methodLine = "    public void " + method.getName() + "()";
         if (realBrowser) {
             String defaultExpectation = null;


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop