File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/test/java/com/marklogic/client/test Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -116,17 +116,17 @@ static void loadCities(CityWriter cityWriter) throws Exception {
116116 // load all the countries into a HashMap (this isn't the big data set)
117117 // we'll attach country info to each city (that's the big data set)
118118 Map <String , Country > countries = new HashMap <String , Country >();
119- System .out .println ("1 :" + BulkReadWriteTest .class .getClassLoader ().getResourceAsStream (COUNTRIES_FILE ));
120- BufferedReader countryReader = new BufferedReader (Common .testFileToReader (COUNTRIES_FILE ));
119+ System .out .println ("Reading countries :" + BulkReadWriteTest .class .getClassLoader ().getResourceAsStream (COUNTRIES_FILE ));
120+ BufferedReader countryReader = new BufferedReader (Common .testFileToReader (COUNTRIES_FILE , "UTF-8" ));
121121 String line ;
122122 while ((line = countryReader .readLine ()) != null ) {
123123 addCountry (line , countries );
124124 }
125125 countryReader .close ();
126126
127127 // write batches of cities combined with their country info
128- System .out .println (BulkReadWriteTest .class .getClassLoader ().getResource (CITIES_FILE ));
129- BufferedReader cityReader = new BufferedReader (Common .testFileToReader (CITIES_FILE ));
128+ System .out .println ("Reading cities:" + BulkReadWriteTest .class .getClassLoader ().getResource (CITIES_FILE ));
129+ BufferedReader cityReader = new BufferedReader (Common .testFileToReader (CITIES_FILE , "UTF-8" ));
130130 line = null ;
131131 int numWritten = 0 ;
132132 while ((line = cityReader .readLine ()) != null ) {
You can’t perform that action at this time.
0 commit comments