]> dev.renevier.net Git - syp.git/commitdiff
set charset meta in html document sent by api.php (needed by IE)
authorarno <arenevier@fdn.fr>
Thu, 20 Aug 2009 10:27:17 +0000 (12:27 +0200)
committerarno <arenevier@fdn.fr>
Thu, 20 Aug 2009 12:17:26 +0000 (14:17 +0200)
api.php

diff --git a/api.php b/api.php
index bb89c55d924e572ae048d443e89f739738683991..ac49d76665ca7cec11da77cad84d1b03c3bc3181 100644 (file)
--- a/api.php
+++ b/api.php
@@ -3,7 +3,8 @@
    license. */
 
 function exit_document ($body) {
-    exit ("<html><head></head><body>$body</body></html>");
+    $charset_meta = '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
+    exit ("<html>$charset_meta<head></head><body>$body</body></html>");
 }
 
 function success ($reason) {