From 432f555e37ac0097051235f079589996b008c419 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Sat, 13 Feb 2010 19:48:16 +0000 Subject: [PATCH] - utf-8 convert was not meant to make it into 0.9.x, fixes #9 --- lib/classes/database/class.db.php | 7 +++++-- lib/init.php | 2 +- templates/header.tpl | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/classes/database/class.db.php b/lib/classes/database/class.db.php index f5f427fc..c6b6e4d5 100644 --- a/lib/classes/database/class.db.php +++ b/lib/classes/database/class.db.php @@ -134,8 +134,11 @@ class db $this->showerror('Trying to use database ' . $this->database . ' failed, exiting'); } } - mysql_query("SET NAMES utf8", $this->link_id); - mysql_query("SET CHARACTER SET utf8", $this->link_id); + /* + * this is not for 0.9.x + */ + //mysql_query("SET NAMES utf8", $this->link_id); + //mysql_query("SET CHARACTER SET utf8", $this->link_id); } /** diff --git a/lib/init.php b/lib/init.php index c05d70c4..cf250283 100644 --- a/lib/init.php +++ b/lib/init.php @@ -21,7 +21,7 @@ header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); -header("Content-type: text/html; charset=utf-8"); +header("Content-type: text/html; charset=iso-8859-1"); // ensure that default timezone is set if(function_exists("date_default_timezone_set") && function_exists("date_default_timezone_get")) diff --git a/templates/header.tpl b/templates/header.tpl index 2a84dfe2..51b92cd3 100644 --- a/templates/header.tpl +++ b/templates/header.tpl @@ -1,7 +1,7 @@ - +