From 1bd047313c3369ccb8c212957b94906ab0d1612d Mon Sep 17 00:00:00 2001 From: Christoph Goller Date: Thu, 2 Sep 2004 13:07:12 +0000 Subject: [PATCH] fix for Bug 30844 (supplied patch applied) git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150477 13f79535-47bb-0310-9956-ffa450edef68 --- src/demo/org/apache/lucene/demo/html/HTMLParser.java | 4 ++-- src/demo/org/apache/lucene/demo/html/HTMLParser.jj | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/demo/org/apache/lucene/demo/html/HTMLParser.java b/src/demo/org/apache/lucene/demo/html/HTMLParser.java index 2e00f53e4a7..7664be709e6 100644 --- a/src/demo/org/apache/lucene/demo/html/HTMLParser.java +++ b/src/demo/org/apache/lucene/demo/html/HTMLParser.java @@ -100,8 +100,8 @@ InterruptedException { if (pipeIn == null) { pipeInStream = new MyPipedInputStream(); pipeOutStream = new PipedOutputStream(pipeInStream); - pipeIn = new InputStreamReader(pipeInStream); - pipeOut = new OutputStreamWriter(pipeOutStream); + pipeIn = new InputStreamReader(pipeInStream, "UTF-16BE"); + pipeOut = new OutputStreamWriter(pipeOutStream, "UTF-16BE"); Thread thread = new ParserThread(this); thread.start(); // start parsing diff --git a/src/demo/org/apache/lucene/demo/html/HTMLParser.jj b/src/demo/org/apache/lucene/demo/html/HTMLParser.jj index a5487e11dcb..5ddcf5e645c 100644 --- a/src/demo/org/apache/lucene/demo/html/HTMLParser.jj +++ b/src/demo/org/apache/lucene/demo/html/HTMLParser.jj @@ -164,8 +164,8 @@ InterruptedException { if (pipeIn == null) { pipeInStream = new MyPipedInputStream(); pipeOutStream = new PipedOutputStream(pipeInStream); - pipeIn = new InputStreamReader(pipeInStream); - pipeOut = new OutputStreamWriter(pipeOutStream); + pipeIn = new InputStreamReader(pipeInStream, "UTF-16BE"); + pipeOut = new OutputStreamWriter(pipeOutStream, "UTF-16BE"); Thread thread = new ParserThread(this); thread.start(); // start parsing