Skip to content

Commit

Permalink
Specify encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
pokap committed Dec 22, 2014
1 parent 93c4db6 commit 8d64385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/USlugify.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function slugify($text)
$text = str_replace($reservedChars, '-', $text);
$text = trim(preg_replace('/[-\s]+/', '-', $text), '-');

return mb_strtolower($text);
return mb_strtolower($text, mb_detect_encoding($text));
}

/**
Expand Down

0 comments on commit 8d64385

Please sign in to comment.