reduced 'Binary data found' errors

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4642 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
danielr 17 years ago
parent 2aef1414f5
commit 96cce8bed9

@ -491,7 +491,7 @@ public final class htmlFilterWriter extends Writer {
private static boolean binaryHint(char c) { private static boolean binaryHint(char c) {
// space, punctiation and symbols, letters and digits (ASCII/latin) // 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 // 8 = backspace
// 9 = horizontal tab // 9 = horizontal tab
// 10 = new line (line feed) // 10 = new line (line feed)
@ -501,7 +501,7 @@ public final class htmlFilterWriter extends Writer {
if (c > 7 && c <= 13) return false; if (c > 7 && c <= 13) return false;
//if (Character.isLetterOrDigit(c)) return false; //if (Character.isLetterOrDigit(c)) return false;
// return false; // return false;
System.out.println("BINARY HINT: " + (int) c); // System.err.println("BINARY HINT: " + (int) c);
return true; return true;
} }

Loading…
Cancel
Save