]> git.wh0rd.org Git - tt-rss.git/commitdiff
force utf-8 charset in rpc and html response because of dumb browsers like Safari
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 1 Jan 2007 11:50:36 +0000 (12:50 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 1 Jan 2007 11:50:36 +0000 (12:50 +0100)
backend.php

index af0621987d8dd8ac57772d08abf60400fbf8a0f0..01cfe0a531dae1e1af043e149a1b2f552d38d588 100644 (file)
@@ -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) {