mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-08-22 04:32:23 +00:00
Require UTF-8
This commit is contained in:
parent
335229b0d1
commit
9b3943ad5c
@ -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';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user