- bugfix smarty_mb_from_unicode() would not decode unicode-points properly

This commit is contained in:
rodneyrehm
2011-10-22 15:30:26 +00:00
parent 7659c6c0ea
commit 1edb2220c7
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ function smarty_mb_from_unicode($unicode, $encoding=null) {
$encoding = mb_internal_encoding();
}
foreach((array) $unicode as $utf32be) {
$character = pack("N", $utf32be);
$character = pack("N*", $utf32be);
$t .= mb_convert_encoding($character, $encoding, "UTF-32BE");
}
return $t;