]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Set encoding for xml response in newnotice.php to UTF-8
authorZach Copley <zach@controlyourself.ca>
Sun, 23 Nov 2008 18:36:13 +0000 (13:36 -0500)
committerZach Copley <zach@controlyourself.ca>
Sun, 23 Nov 2008 18:36:13 +0000 (13:36 -0500)
darcs-hash:20081123183613-7b5ce-9c6bd2b2efb679bce9f710f5f5ad9c48bf652e29.gz

actions/newnotice.php

index 4eb6616f189fc465e993145e48a9814c4438acbc..06ee5778c8e5e5ff4832a07ba19df44bf3944a2c 100644 (file)
@@ -84,7 +84,7 @@ class NewnoticeAction extends Action {
                common_broadcast_notice($notice);
 
                if ($this->boolean('ajax')) {
-                       common_start_html('text/xml');
+                       common_start_html('text/xml;charset=utf-8');
                        common_element_start('head');
                        common_element('title', null, _('Notice posted'));
                        common_element_end('head');
@@ -107,7 +107,7 @@ class NewnoticeAction extends Action {
        }
 
        function ajax_error_msg($msg) {
-               common_start_html('text/xml');
+               common_start_html('text/xml;charset=utf-8');
                common_element_start('head');
                common_element('title', null, _('Ajax Error'));
                common_element_end('head');