mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 12:14:12 +02:00
- bugfix smarty_mb_from_unicode() would not decode unicode-points properly
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user