strawberrymusicplayer / strawberry

:strawberry: Strawberry Music Player
https://www.strawberrymusicplayer.org/
GNU General Public License v3.0
2.67k stars 183 forks source link

Incorrect encoding used when importing files into collection with Czech characters #1481

Closed goliashcz closed 2 months ago

goliashcz commented 2 months ago

Describe the bug In my collection I am using UTF-8 for MP3 ID3 tag v2. When Strawberry imports into the collection such files with Czech characters, it doesn't use UTF-8 encoding anymore. I guess there is some auto-detection in place and it stopped working with 1.1.0 release. (it might use windows-1250?)

To Reproduce Add to collection some MP3 file with ID3 tag v2 containing "ěščřžýáíé" characters (using UTF-8).

Expected behavior Text is displayed in collection correctly. Not with question marks.

Screenshots: obrazek

System Information:

Additional context Add any other context about the problem here.

GistOfSpirit commented 2 months ago

Same thing happens with Greek titles. It was OK in the previous version.

I have several such songs in my playlist, and they display OK until Strawberry actually plays them. Then their titles are changed to this, and even manually correcting them doesn't fix it.

image

This one's text is meant to be "Βασίλισσα της νύχτας - Σωτηρία Λεονάρδου - Ηλεκτρική Άνοιξη". Viewing the file's metadata through other software (the Dolphin file manager in my case) shows them correctly, so I believe the files aren't corrupted, just displaying wrong in Strawberry. But only after it plays them.

jonaski commented 2 months ago

Sorry about that, TagLib uses Latin by default and I forgot to specify UTF-8 in one place.