Skip to content

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

handle UTF-8 correctly

(no author)5c876854389b
diff --git a/htroot/Wiki.java b/htroot/Wiki.java
index 3d9853ffa..890dd7f23 100644
--- a/htroot/Wiki.java
+++ b/htroot/Wiki.java
@@ -123,7 +123,7 @@ public class Wiki {
"<form action=\"Wiki.html\" method=\"post\" enctype=\"multipart/form-data\" accept-charset=\"UTF-8\">" +
//"<form action=\"Wiki.html\" method=\"post\" enctype=\"application/x-www-form-urlencoded\">" +
"<p>Author:<br><input name=\"author\" type=\"text\" size=\"80\" maxlength=\"80\" value=\"" + author + "\"></p>" +
- "<p>Text:<br><textarea name=\"content\" cols=\"80\" rows=\"24\">" + new String(page.page(), "ISO-8859-1") + "</textarea></p>" +
+ "<p>Text:<br><textarea name=\"content\" cols=\"80\" rows=\"24\">" + new String(page.page(), "UTF-8") + "</textarea></p>" +
"<input type=\"hidden\" name=\"page\" value=\"" + pagename + "\">" +
"<input type=\"hidden\" name=\"reason\" value=\"edit\">" +
"<input type=\"submit\" name=\"submit\" value=\"Submit\">" +