Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

added test files for UTF-8 / Umlaute - Testing: These 3 files contain the same text in different HTML encodings. We use this documents to test if the parser and indexer creates the same set of word hashes for all three texts.

orbiter204220ecd57b
diff --git a/test/parsertest/umlaute_html.html b/test/parsertest/umlaute_html.html
new file mode 100644
index 000000000..02f91f84a
--- /dev/null
+++ b/test/parsertest/umlaute_html.html
@@ -0,0 +1,10 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
+</head>
+<body>
+In M&uuml;nchen steht ein Hofbr&auml;uhaus.
+Dort gibt es Bier aus Ma&szlig;kr&uuml;gen.<br>
+</body>
+</html>
diff --git a/test/parsertest/umlaute_iso.html b/test/parsertest/umlaute_iso.html
new file mode 100644
index 000000000..de56c7116
--- /dev/null
+++ b/test/parsertest/umlaute_iso.html
@@ -0,0 +1,10 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
+</head>
+<body>
+In M�nchen steht ein Hofbr�uhaus.
+Dort gibt es Bier aus Ma�kr�gen.<br>
+</body>
+</html>
diff --git a/test/parsertest/umlaute_utf8.html b/test/parsertest/umlaute_utf8.html
new file mode 100644
index 000000000..8954c5c6a
--- /dev/null
+++ b/test/parsertest/umlaute_utf8.html
@@ -0,0 +1,10 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
+</head>
+<body>
+In M&#252;nchen steht ein Hofbr&#228;uhaus.
+Dort gibt es Bier aus Ma&#223;kr&#252;gen.<br>
+</body>
+</html>