From: Andrew Dolgov Date: Mon, 1 Jan 2007 11:50:36 +0000 (+0100) Subject: force utf-8 charset in rpc and html response because of dumb browsers like Safari X-Git-Tag: 1.2.7~10 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6002818ba65f9a913164c8f89c1040a8d21d08fd;p=tt-rss.git force utf-8 charset in rpc and html response because of dumb browsers like Safari --- diff --git a/backend.php b/backend.php index af062198..01cfe0a5 100644 --- a/backend.php +++ b/backend.php @@ -3,6 +3,8 @@ require_once "modules/backend-rpc.php"; header("Cache-Control: no-cache, must-revalidate"); + header("Cache-Control: no-cache, must-revalidate"); + header("Pragma: no-cache"); header("Expires: -1"); @@ -29,7 +31,9 @@ if ((!$op || $op == "rpc" || $op == "rss" || $op == "digestSend" || $op == "globalUpdateFeeds") && !$_REQUEST["noxml"]) { - header("Content-Type: application/xml"); + header("Content-Type: application/xml; charset=utf-8"); + } else { + header("Content-Type: text/html; charset=utf-8"); } if (!$op) {