This patch adds correct charset support to meta tags of pages
generated by phpwiki. You will need to add 

php_admin_value default_charset "iso-8859-2"

to your httpd.conf if your *server* returns iso-8859-1 in server
headers.

diff -urw phpwiki/lib/config.php /data/phpwiki/lib/config.php
--- phpwiki/lib/config.php	Wed Jan 31 08:38:10 2001
+++ /data/phpwiki/lib/config.php	Fri Sep 14 14:58:47 2001
@@ -255,4 +256,7 @@
 
    // constants for flags in $pagehash
    define("FLAG_PAGE_LOCKED", 1);
+
+   // charset
+   define("CHARSET", "iso-8859-2");
 ?>
diff -urw phpwiki/lib/stdlib.php /data/phpwiki/lib/stdlib.php
--- phpwiki/lib/stdlib.php	Mon Jan 15 13:32:57 2001
+++ /data/phpwiki/lib/stdlib.php	Fri Sep 14 15:01:10 2001
@@ -444,6 +444,7 @@
       _dotoken('PAGE', htmlspecialchars($name), $page);
       _dotoken('ALLOWEDPROTOCOLS', $AllowedProtocols, $page);
       _dotoken('LOGO', $logo, $page);
+      _dotoken('CHARSET', CHARSET, $page);
       
       // invalid for messages (search results, error messages)
       if ($template != 'MESSAGE') {
diff -urw phpwiki/templates/browse.html /data/phpwiki/templates/browse.html
--- phpwiki/templates/browse.html	Thu Nov  9 17:29:10 2000
+++ /data/phpwiki/templates/browse.html	Fri Sep 14 15:03:11 2001
@@ -1,6 +1,6 @@
 <html>
 <head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta http-equiv="Content-Type" content="text/html; charset=###CHARSET###">
 <title>###PAGE###</title>
 </head>
 
diff -urw phpwiki/templates/editlinks.html /data/phpwiki/templates/editlinks.html
--- phpwiki/templates/editlinks.html	Sun Oct 22 15:30:57 2000
+++ /data/phpwiki/templates/editlinks.html	Fri Sep 14 15:03:11 2001
@@ -1,6 +1,6 @@
 <html>
 <head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta http-equiv="Content-Type" content="text/html; charset=###CHARSET###">
 <title>###PAGE###</title>
 </head>
 
diff -urw phpwiki/templates/editpage.html /data/phpwiki/templates/editpage.html
--- phpwiki/templates/editpage.html	Wed Nov  8 16:50:57 2000
+++ /data/phpwiki/templates/editpage.html	Fri Sep 14 15:03:11 2001
@@ -1,6 +1,6 @@
 <html>
 <head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta http-equiv="Content-Type" content="text/html; charset=###CHARSET###">
 <title>###PAGE###</title>
 </head>
 
diff -urw phpwiki/templates/message.html /data/phpwiki/templates/message.html
--- phpwiki/templates/message.html	Sun Oct 22 15:30:57 2000
+++ /data/phpwiki/templates/message.html	Fri Sep 14 15:03:11 2001
@@ -1,6 +1,6 @@
 <html>
 <head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta http-equiv="Content-Type" content="text/html; charset=###CHARSET###">
 <title>###PAGE###</title>
 </head>
 
