Use system charset for systems that aren't UTF-8

This commit is contained in:
Nathan Gray 2011-11-28 16:15:21 +00:00
parent 288d40065a
commit 4312c485d1

View File

@ -274,7 +274,7 @@ class notifications_ajax {
} }
$message = preg_replace('#</?a[^>]*>#is','',$message); $message = preg_replace('#</?a[^>]*>#is','',$message);
$message = 'data:text/html;charset=utf-8;base64,'.base64_encode($message); $message = 'data:text/html;charset=' . translation::charset() .';base64,'.base64_encode($message);
} }
$this->response->addScriptCall('append_notification_message',$notification['notify_id'],$notification['notify_message'],$message); $this->response->addScriptCall('append_notification_message',$notification['notify_id'],$notification['notify_message'],$message);
} }