fixed chinese encoding problem
This commit is contained in:
parent
28f48e2d26
commit
537fe6a5bf
@ -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 "<style>body { font-family: Courier, 'Microsoft Yahei', 'Microsoft Jhenghei', sans-serif; }</style>";
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user