summaryrefslogtreecommitdiff
path: root/modules/rest/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-08-09 23:01:47 -0700
committerBharat Mediratta <bharat@menalto.com>2010-08-09 23:01:47 -0700
commita94bb197987deeee4b0046fb6566510080e087f6 (patch)
tree0f8347fd930fc2016155b1e36ff0c3c6fd64fb32 /modules/rest/helpers
parent9de371e1b3bda42fdaf564af502c0c986eeada10 (diff)
Force the charset to UTF-8 when viewing the HTML form of REST output.
Diffstat (limited to 'modules/rest/helpers')
-rw-r--r--modules/rest/helpers/rest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rest/helpers/rest.php b/modules/rest/helpers/rest.php
index 333daf95..3a6b2cad 100644
--- a/modules/rest/helpers/rest.php
+++ b/modules/rest/helpers/rest.php
@@ -45,7 +45,7 @@ class rest_Core {
break;
case "html":
- header("Content-type: text/html");
+ header("Content-type: text/html; charset=UTF-8");
if ($data) {
$html = preg_replace(
"#([\w]+?://[\w]+[^ \'\"\n\r\t<]*)#ise", "'<a href=\"\\1\" >\\1</a>'",