mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
- bugfix smarty_mb_from_unicode() would not decode unicode-points properly
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
===== trunk =====
|
===== trunk =====
|
||||||
|
22.10.2011
|
||||||
|
- bugfix smarty_mb_from_unicode() would not decode unicode-points properly
|
||||||
|
|
||||||
21.10.2011
|
21.10.2011
|
||||||
- bugfix apostrophe in plugins_dir path name failed (forum topic 20199)
|
- bugfix apostrophe in plugins_dir path name failed (forum topic 20199)
|
||||||
- improvement sha1() for array keys longer than 150 characters
|
- improvement sha1() for array keys longer than 150 characters
|
||||||
@@ -17,6 +20,7 @@
|
|||||||
===== Smarty-3.1.4 =====
|
===== Smarty-3.1.4 =====
|
||||||
19.10.2011
|
19.10.2011
|
||||||
- added exception when using PHP4 style constructor
|
- added exception when using PHP4 style constructor
|
||||||
|
|
||||||
16.10.2011
|
16.10.2011
|
||||||
- bugfix testInstall() did not propery check cache_dir and compile_dir
|
- bugfix testInstall() did not propery check cache_dir and compile_dir
|
||||||
|
|
||||||
|
@@ -39,7 +39,7 @@ function smarty_mb_from_unicode($unicode, $encoding=null) {
|
|||||||
$encoding = mb_internal_encoding();
|
$encoding = mb_internal_encoding();
|
||||||
}
|
}
|
||||||
foreach((array) $unicode as $utf32be) {
|
foreach((array) $unicode as $utf32be) {
|
||||||
$character = pack("N", $utf32be);
|
$character = pack("N*", $utf32be);
|
||||||
$t .= mb_convert_encoding($character, $encoding, "UTF-32BE");
|
$t .= mb_convert_encoding($character, $encoding, "UTF-32BE");
|
||||||
}
|
}
|
||||||
return $t;
|
return $t;
|
||||||
|
Reference in New Issue
Block a user