Navigation Menu

Skip to content

Commit

Permalink
[Console] added mb_detect_encoding when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 4, 2011
1 parent 18c3049 commit 06804d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Application.php
Expand Up @@ -697,7 +697,7 @@ public function renderException($e, $output)
{
$strlen = function ($string)
{
return function_exists('mb_strlen') ? mb_strlen($string) : strlen($string);
return function_exists('mb_strlen') ? mb_strlen($string, mb_detect_encoding($string)) : strlen($string);
};

do {
Expand Down

0 comments on commit 06804d3

Please sign in to comment.