strawberrymusicplayer / strawberry

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

Non-latin characters replaced with � in smart playlist names after restart #1440

Closed pie3636 closed 6 months ago

pie3636 commented 6 months ago

Describe the bug

When editing a smart playlist's name to include non-latin characters such as "é" or "è", the name is initially correctly changed. However, upon closing and restarting Strawberry, the characters are then replaced with the Unicode replacement character "�".

The issue probably occurs upon saving the smart playlist's name, as some of the default smart playlist names contain special characters and those do not get replaced until edited. For example, the "Last played" playlist is named "Dernière écoute" in French, and stays that way. However, if I edit the playlist and save it, it turns into "Derni�re �coute" after a restart.

This issue is separate from #931, although it may be related.

To Reproduce

  1. Open Strawberry
  2. Create/edit a smart playlist, and rename it to include the character "é" or "è"
  3. Restart Strawberry and look at the playlist's name

Expected behavior The name should correctly be saved and restored.

Screenshots: Here are the French names of the default smart playlists after editing them (again, the names were initially fine, and only changed once I modified the playlists) image

System Information: