From: Fabien Potencier Date: Wed, 26 Oct 2011 09:28:33 +0000 (+0200) Subject: added missing supported charset for htmlspecialchars X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=3201b39f47b08854d883213ff3323646086cf213;p=web%2Fkonrad%2Ftwig.git added missing supported charset for htmlspecialchars --- diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index d0f6acb..965a9cc 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -516,14 +516,15 @@ function twig_escape_filter(Twig_Environment $env, $string, $type = 'html', $cha 'iso-8859-15', 'iso8859-15', 'utf-8', 'cp866', 'ibm866', '866', - 'cp1251', 'win-1251', '1251', - 'cp1252', '1252', + 'cp1251', 'windows-1251', 'win-1251', '1251', + 'cp1252', 'windows-1252', '1252', 'koi8-r', 'koi8-ru', 'koi8r', 'big5', '950', 'gb2312', '936', - 'big5-hkscs', 'big5', + 'big5-hkscs', 'shift_jis', 'sjis', '932', 'euc-jp', 'eucjp', + 'iso8859-5', 'iso-8859-5', 'macroman', ))) { return htmlspecialchars($string, ENT_QUOTES | ENT_SUBSTITUTE, $charset); }