diff --git a/admin/install.php b/admin/install.php index 1abaad01..8b3234cf 100644 --- a/admin/install.php +++ b/admin/install.php @@ -2,14 +2,15 @@ /** * @Author: printempw * @Date: 2016-01-16 23:01:33 - * @Last Modified by: prpr - * @Last Modified time: 2016-02-08 00:33:32 + * @Last Modified by: printempw + * @Last Modified time: 2016-03-05 19:22:44 * * Create tables automatically */ $dir = dirname(dirname(__FILE__)); require "$dir/includes/autoload.inc.php"; +header('Content-type: text/html; charset=utf-8'); echo ""; diff --git a/includes/Utils.class.php b/includes/Utils.class.php index d9089689..e7a77643 100644 --- a/includes/Utils.class.php +++ b/includes/Utils.class.php @@ -2,8 +2,8 @@ /** * @Author: printempw * @Date: 2016-01-16 23:01:33 - * @Last Modified by: prpr - * @Last Modified time: 2016-02-05 21:59:56 + * @Last Modified by: printempw + * @Last Modified time: 2016-03-05 19:21:47 */ class Utils @@ -18,7 +18,7 @@ class Utils public static function raise($errno = -1, $msg = "Error occured.") { $exception['errno'] = $errno; $exception['msg'] = $msg; - header('Content-type: application/json'); + header('Content-type: application/json; charset=utf-8'); die(json_encode($exception)); }