Skip to content
Snippets Groups Projects
Commit 06804d3f authored by Fabien Potencier's avatar Fabien Potencier
Browse files

[Console] added mb_detect_encoding when needed

parent 18c3049f
Branches
Tags
No related merge requests found
......@@ -697,7 +697,7 @@ class Application
{
$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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment