diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-08-09 23:01:47 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-08-09 23:01:47 -0700 |
commit | a94bb197987deeee4b0046fb6566510080e087f6 (patch) | |
tree | 0f8347fd930fc2016155b1e36ff0c3c6fd64fb32 /modules/rest/helpers/rest.php | |
parent | 9de371e1b3bda42fdaf564af502c0c986eeada10 (diff) |
Force the charset to UTF-8 when viewing the HTML form of REST output.
Diffstat (limited to 'modules/rest/helpers/rest.php')
-rw-r--r-- | modules/rest/helpers/rest.php | 2 |
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>'", |