File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
datavec-examples/src/main/java/org/datavec/transform/basic Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 39
39
import org .joda .time .DateTimeZone ;
40
40
41
41
import java .io .File ;
42
+ import java .nio .charset .Charset ;
42
43
import java .util .ArrayList ;
43
44
import java .util .Arrays ;
44
45
import java .util .HashSet ;
@@ -62,7 +63,7 @@ public class BasicDataVecExampleLocal {
62
63
public static String dataLocalPath ;
63
64
64
65
65
- public static void main (String [] args ) throws Exception {
66
+ public static void main (String [] args ) throws Exception {
66
67
dataLocalPath = DownloaderUtility .BASICDATAVECEXAMPLE .Download ();
67
68
//=====================================================================
68
69
// Step 1: Define the input data schema
@@ -180,11 +181,11 @@ public static void main(String[] args) throws Exception {
180
181
181
182
//Print before + after:
182
183
System .out .println ("\n \n ---- Original Data File ----" );
183
- String originalFileContents = FileUtils .readFileToString (inputFile );
184
+ String originalFileContents = FileUtils .readFileToString (inputFile , Charset . defaultCharset () );
184
185
System .out .println (originalFileContents );
185
186
186
187
System .out .println ("\n \n ---- Processed Data File ----" );
187
- String fileContents = FileUtils .readFileToString (outputFile );
188
+ String fileContents = FileUtils .readFileToString (outputFile , Charset . defaultCharset () );
188
189
System .out .println (fileContents );
189
190
190
191
System .out .println ("\n \n DONE" );
You can’t perform that action at this time.
0 commit comments