mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-08-21 20:22:25 +00:00
Require UTF-8
This commit is contained in:
parent
335229b0d1
commit
9b3943ad5c
@ -6,6 +6,10 @@ use PDOException;
|
||||
|
||||
class Page {
|
||||
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);
|
||||
if ($header) {
|
||||
require_once './includes/header.php';
|
||||
|
Loading…
x
Reference in New Issue
Block a user