mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 23:05:18 -04:00
Specify the charset on the content type header
This commit is contained in:
@@ -27,7 +27,7 @@ class json_Core {
|
||||
*/
|
||||
static function reply($message) {
|
||||
if (!headers_sent()) {
|
||||
header("Content-Type: application/json");
|
||||
header("Content-Type: application/json; charset=" . Kohana::CHARSET);
|
||||
}
|
||||
print json_encode($message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user