summaryrefslogtreecommitdiff
path: root/modules/rest
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-08-15 01:59:54 -0700
committerBharat Mediratta <bharat@menalto.com>2010-08-15 01:59:54 -0700
commitff1d8aea2f2805f85ce3cc7e4079d04fb9f1bac4 (patch)
tree4e190557b981ad9d551593c8ad45e0f9d09f5f3f /modules/rest
parenta1be33f6ab9672cd4886e5b607001d30368613a1 (diff)
We use UTF-8 everywhere. Fixes ticket #1285.
Diffstat (limited to 'modules/rest')
-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 3a6b2cad..d5ed0452 100644
--- a/modules/rest/helpers/rest.php
+++ b/modules/rest/helpers/rest.php
@@ -36,7 +36,7 @@ class rest_Core {
}
if (preg_match('/^[$A-Za-z_][0-9A-Za-z_]*$/', $callback) == 1) {
- header("Content-type: application/javascript");
+ header("Content-type: application/javascript; charset=UTF-8");
print "$callback(" . json_encode($data) . ")";
} else {
throw new Rest_Exception(