From 0c24f7a669cc679474d13681974da9123b175776 Mon Sep 17 00:00:00 2001 From: Xkeeper Date: Sun, 9 Aug 2015 23:24:17 -0700 Subject: [PATCH] [fixes #8] Setting everything to use UTF-8 --- lib/layout.php | 13 ++++--------- lib/mysql.php | 1 + 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/layout.php b/lib/layout.php index 3bd594d..49ee9f6 100644 --- a/lib/layout.php +++ b/lib/layout.php @@ -1,13 +1,8 @@ "; } - $header1="$windowtitle + $header1="$windowtitle $metatag $css diff --git a/lib/mysql.php b/lib/mysql.php index 3a0a598..181df03 100644 --- a/lib/mysql.php +++ b/lib/mysql.php @@ -22,6 +22,7 @@ $this->connection = (($persist) ? mysql_pconnect($host,$user,$pass) : mysql_connect($host,$user,$pass)); $t = microtime(true)-$start; $this->id = ++self::$connection_count; + $this->set_character_encoding("utf8"); if (self::$debug_on) { $b = self::getbacktrace();