Commit 30e7a098 authored by haemmer's avatar haemmer

Fixed #411

parent b7d99ad0
......@@ -306,7 +306,7 @@ function getLocalString($string, $encoding = ''){
/******************************************************************************/
// Converts string to a JavaScript format that can be used in JS alert
function convertToJSString($string){
return addslashes(utf8_encode(html_entity_decode($string)));
return addslashes(html_entity_decode($string, ENT_COMPAT, 'UTF-8'));
}
/******************************************************************************/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment