[Bug #81] [Language] charset in web pages

anthill-daemon <anthill-daemon-+mQDA36h6dWw5LPnMra/[email protected]> Tue, 16 Sep 2003 07:56:00 -0600
Newsgroups gmane.comp.bug-tracking.anthill.devel
Message-ID <[email protected]>
http://anthill.vmlinuz.ca/anthill/query.php?bug=81

--- 81	2003-09-16 07:56:00.000000000 -0600
+++ 81.tmp.SwPGTp	2003-09-16 07:56:00.000000000 -0600
@@ -0,0 +1,55 @@
+Bug#       : 81
+Product    : Anthill
+Version    : 0.2.3
+Status     : NEW
+Priority   : Normal
+Component  : Language
+URL        : http://lafox.net/files/anthill-charset-bug.png
+Assigned To: [email protected]
+Reported By: [email protected]
+Type       : ОБЩИЙ
+
+Summary    : charset in web pages
+
+Comment posted: 2003-09-16 7:56 AM by [email protected]
+
+Anthill's web pages display incorrect in russian.
+(see image http://lafox.net/files/anthill-charset-bug.png )
+
+It is not enough to add into META
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+since PHP sends in the header it's default charset. In your case it's
+ISO-8859-15:
+//------------
+ $ lynx -mime_header http://anthill.vmlinuz.ca/anthill/|grep "Content-Type"
+  Content-Type: text/html; charset=iso-8859-15
+      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+//-------------
+
+Problem can be solved by adding this
+
+header ("Content-Type: text/html; charset=$_CONF[meta_lang]");
+
+in to /include/functions.inc.php (string #84):
+---------------------------------------------------------
+function d_StartPage($ptitle) {
+    global $_CONF, $rtmpldir, $wtmpldir, $config;
+
+   //force adding charset in php headers
+   header ("Content-Type: text/html; charset=$_CONF[meta_lang]");
+
+//---------------------------------------------------------------------------
+    ?>
+    <html>
+    <head>
+[.....]
+-----------------------------------------------------------
+
+
+
+
+
+
+
+
+

_______________________________________________
Anthill-workers mailing list
Anthill-workers-+mQDA36h6dWw5LPnMra/[email protected]
http://vmlinuz.ca/mailman/listinfo/anthill-workers