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 3939import org .joda .time .DateTimeZone ;
4040
4141import java .io .File ;
42+ import java .nio .charset .Charset ;
4243import java .util .ArrayList ;
4344import java .util .Arrays ;
4445import java .util .HashSet ;
@@ -62,7 +63,7 @@ public class BasicDataVecExampleLocal {
6263 public static String dataLocalPath ;
6364
6465
65- public static void main (String [] args ) throws Exception {
66+ public static void main (String [] args ) throws Exception {
6667 dataLocalPath = DownloaderUtility .BASICDATAVECEXAMPLE .Download ();
6768 //=====================================================================
6869 // Step 1: Define the input data schema
@@ -180,11 +181,11 @@ public static void main(String[] args) throws Exception {
180181
181182 //Print before + after:
182183 System .out .println ("\n \n ---- Original Data File ----" );
183- String originalFileContents = FileUtils .readFileToString (inputFile );
184+ String originalFileContents = FileUtils .readFileToString (inputFile , Charset . defaultCharset () );
184185 System .out .println (originalFileContents );
185186
186187 System .out .println ("\n \n ---- Processed Data File ----" );
187- String fileContents = FileUtils .readFileToString (outputFile );
188+ String fileContents = FileUtils .readFileToString (outputFile , Charset . defaultCharset () );
188189 System .out .println (fileContents );
189190
190191 System .out .println ("\n \n DONE" );
You can’t perform that action at this time.
0 commit comments