UTF-8での内容に日本語

http://sourceforge.jp/tracker/index.php?func=detail&aid=5940&group_id=689&atid=4934
原因は分かった。対策は、もうちょっと時間がかかりそう。UTF-8固定なら、こんな感じ。

−−− org/seasar/kijimuna/core/parser/DocumentParser.java	26 Oct 2004 01:54:34 -0000	1.13
+++ org/seasar/kijimuna/core/parser/DocumentParser.java	25 Jun 2005 14:00:42 -0000
@@ -93,8 +94,14 @@
    }

    public IParseResult parse(String text, String systemID, DocumentHandler handler) {
−      InputStream in = new ByteArrayInputStream(text.getBytes()); 
−      return parse(in, systemID, null, handler);
+      InputStream in;
+      try {
+          // TODO: content assist
+          in = new ByteArrayInputStream(text.getBytes("UTF-8"));
+      } catch (UnsupportedEncodingException e) {
+          in = new ByteArrayInputStream(text.getBytes());
+      }
+      return parse(in, systemID, null, handler);