[GH-ISSUE #113] iconv(): Detected an incomplete multibyte character in input string #81

Closed
opened 2026-02-26 02:32:04 +03:00 by kerem · 8 comments
Owner

Originally created by @gau1991 on GitHub (Dec 18, 2015).
Original GitHub issue: https://github.com/koel/koel/issues/113

Hi
Around 4GB songs.,
Getting this error each time:

www-data@example:~/koel$ php artisan koel:sync
Koel syncing started. All we need now is just a little patience…



  [ErrorException]                                                     
  iconv(): Detected an incomplete multibyte character in input string  



www-data@example:~/koel$ 

Originally created by @gau1991 on GitHub (Dec 18, 2015). Original GitHub issue: https://github.com/koel/koel/issues/113 Hi Around 4GB songs., Getting this error each time: ``` www-data@example:~/koel$ php artisan koel:sync Koel syncing started. All we need now is just a little patience… [ErrorException] iconv(): Detected an incomplete multibyte character in input string www-data@example:~/koel$ ```
kerem closed this issue 2026-02-26 02:32:04 +03:00
Author
Owner

@etopian commented on GitHub (Dec 18, 2015):

in app/models/Artist.php

            //$name = iconv($encoding, 'UTF-8//IGNORE', $name);
            $name = mb_convert_encoding($name , 'UTF-8' , $encoding);

<!-- gh-comment-id:165898336 --> @etopian commented on GitHub (Dec 18, 2015): in app/models/Artist.php ``` //$name = iconv($encoding, 'UTF-8//IGNORE', $name); $name = mb_convert_encoding($name , 'UTF-8' , $encoding); ```
Author
Owner

@gau1991 commented on GitHub (Dec 18, 2015):

@etopian ,
Thanks, its works fine +1

<!-- gh-comment-id:165900440 --> @gau1991 commented on GitHub (Dec 18, 2015): @etopian , Thanks, its works fine +1
Author
Owner

@phanan commented on GitHub (Dec 19, 2015):

This fix has been introduced since yesterday. Try pulling the new code.

<!-- gh-comment-id:165934540 --> @phanan commented on GitHub (Dec 19, 2015): This fix has been introduced since yesterday. Try pulling the new code.
Author
Owner

@gau1991 commented on GitHub (Dec 19, 2015):

@phanan
I have latest code only, still I am getting this error. But @etopian fix works fine

<!-- gh-comment-id:165953254 --> @gau1991 commented on GitHub (Dec 19, 2015): @phanan I have latest code only, still I am getting this error. But @etopian fix works fine
Author
Owner

@phanan commented on GitHub (Dec 19, 2015):

Ah... Just realized that I haven't pushed the fix yet.

<!-- gh-comment-id:165959194 --> @phanan commented on GitHub (Dec 19, 2015): Ah... Just realized that I haven't pushed the fix yet.
Author
Owner

@maxengel commented on GitHub (Jul 17, 2017):

Did this ever get pushed? I get the following with my initial scan (excerpt):

QueryException in Connection.php line 651: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '??T' for key 'artists_name_unique' (SQL: insert into artists (name, updated_at, created_at) values (��The Postal Service, 2017-07-17 03:00:32, 2017-07-17 03:00:32))

<!-- gh-comment-id:315660060 --> @maxengel commented on GitHub (Jul 17, 2017): Did this ever get pushed? I get the following with my initial scan (excerpt): `QueryException in Connection.php line 651: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '??T' for key 'artists_name_unique' (SQL: insert into `artists` (`name`, `updated_at`, `created_at`) values (��The Postal Service, 2017-07-17 03:00:32, 2017-07-17 03:00:32))`
Author
Owner

@JaneX8 commented on GitHub (Sep 19, 2018):

I also still have a similar error and cannot get more than 1 song in my library.

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '??K' for key 'artists_name_unique'

<!-- gh-comment-id:422855212 --> @JaneX8 commented on GitHub (Sep 19, 2018): I also still have a similar error and cannot get more than 1 song in my library. `SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '??K' for key 'artists_name_unique'`
Author
Owner

@JaneX8 commented on GitHub (Sep 19, 2018):

It's very frustrating. I've spend hours trying to fix this with no solution. That's sad cause the slogan includes "*that works". Any thoughts anyone? @phanan

<!-- gh-comment-id:422888725 --> @JaneX8 commented on GitHub (Sep 19, 2018): It's very frustrating. I've spend hours trying to fix this with no solution. That's sad cause the slogan includes "*that works". Any thoughts anyone? @phanan
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#81
No description provided.