Require UTF-8

This commit is contained in:
ruan 2015-11-03 09:01:26 +02:00
parent 335229b0d1
commit 9b3943ad5c

View File

@ -6,6 +6,10 @@ use PDOException;
class Page { class Page {
public function __construct($name, $header = true) { public function __construct($name, $header = true) {
ini_set('mbstring.internal_encoding', 'UTF-8');
ini_set('default_charset', 'utf-8');
header('Content-Type: text/html; charset=UTF-8');
$this->time = microtime(true); $this->time = microtime(true);
if ($header) { if ($header) {
require_once './includes/header.php'; require_once './includes/header.php';