From 56c5610587a600ba3b858d030112e821f35d2b4e Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 11 Nov 2010 17:20:38 +0100 Subject: [PATCH] Default to UTF-8 for padding. --- framework/Util/lib/Horde/String.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Util/lib/Horde/String.php b/framework/Util/lib/Horde/String.php index 5bdbd244f..fe8a2ec0e 100644 --- a/framework/Util/lib/Horde/String.php +++ b/framework/Util/lib/Horde/String.php @@ -398,7 +398,7 @@ class Horde_String * @return string The padded string. */ static public function pad($input, $length, $pad = ' ', - $type = STR_PAD_RIGHT, $charset = null) + $type = STR_PAD_RIGHT, $charset = 'UTF-8') { $mb_length = self::length($input, $charset); $sb_length = strlen($input); -- 2.11.0