diff --git a/src/demo/org/apache/lucene/demo/SearchFiles.java b/src/demo/org/apache/lucene/demo/SearchFiles.java index 11700aac004..a43681cc6d3 100644 --- a/src/demo/org/apache/lucene/demo/SearchFiles.java +++ b/src/demo/org/apache/lucene/demo/SearchFiles.java @@ -101,7 +101,7 @@ class SearchFiles { if (queries != null) { in = new BufferedReader(new FileReader(queries)); } else { - in = new BufferedReader(new InputStreamReader(System.in)); + in = new BufferedReader(new InputStreamReader(System.int, "UTF-8")); } while (true) {