Skip to content

Commit

Permalink
Replace iconv with mb_
Browse files Browse the repository at this point in the history
  • Loading branch information
An Phan committed Dec 18, 2015
1 parent 9a134f5 commit 423d1fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Artist.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function get($name)
{
// Remove the BOM from UTF-8/16/32, as it will mess up the database constraints.
if ($encoding = Util::detectUTFEncoding($name)) {
$name = iconv($encoding, 'UTF-8//IGNORE', $name);
$name = mb_convert_encoding($name, 'UTF-8', $encoding);
}

$name = trim($name) ?: self::UNKNOWN_NAME;
Expand Down

0 comments on commit 423d1fb

Please sign in to comment.