From 96cce8bed9798d50a65fb1c624dd2bf591864055 Mon Sep 17 00:00:00 2001 From: danielr Date: Sat, 5 Apr 2008 14:20:01 +0000 Subject: [PATCH] reduced 'Binary data found' errors git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4642 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/htmlFilter/htmlFilterWriter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/htmlFilter/htmlFilterWriter.java b/source/de/anomic/htmlFilter/htmlFilterWriter.java index 530b38ca2..115149b14 100644 --- a/source/de/anomic/htmlFilter/htmlFilterWriter.java +++ b/source/de/anomic/htmlFilter/htmlFilterWriter.java @@ -491,7 +491,7 @@ public final class htmlFilterWriter extends Writer { private static boolean binaryHint(char c) { // space, punctiation and symbols, letters and digits (ASCII/latin) - if (c > 31 && c < 128) return false; + if (c >= 31 && c < 128) return false; // 8 = backspace // 9 = horizontal tab // 10 = new line (line feed) @@ -501,7 +501,7 @@ public final class htmlFilterWriter extends Writer { if (c > 7 && c <= 13) return false; //if (Character.isLetterOrDigit(c)) return false; // return false; - System.out.println("BINARY HINT: " + (int) c); +// System.err.println("BINARY HINT: " + (int) c); return true; }