Specify the charset on the content type header

This commit is contained in:
Tim Almdal
2010-08-01 08:57:22 -07:00
parent a453170727
commit cd50fde5de
+1 -1
View File
@@ -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);
}