Skip to main content
Enthusiast II
May 14, 2021

Recent Sonos update is broken on non-ASCII characters in file names

  • May 14, 2021
  • 45 replies
  • 1657 views

It appears that the recent Sonos update, 13.1, is broken with regards to non-ASCII characters in files when updating the library. I have a job that daily generate 30 playlists, and the format of the name of the playlists is Pnn Artist - Albuim.m3u. They are located on a NAS from Synology that I have had for quite a few years.

For instance, there is a file of which the name is P05 - Järngustav - Tiden läker inga sår.m3u. But in the Windows controller, this appears as P05 - Jrngustav - Tiden lker inga sr.m3u. In the Windows controller I see a square with a cross in instead of the å and the ä. Another example is P23 Cicala Mvta - Live at 磔磔- 結成20周年記念.m3u. Here all Kanji characters comes out as question marks. And it is not only matter of prettiness; when I open the list, there is nothing there, and I can’t put it into the queue.

This was working without problem until yesterday, until it was broken. It obviously needs to be fixed - and fixed soon!

 

This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.

45 replies

Enthusiast II
October 11, 2022

Like mjvanthoor I create playlists every night, and I also have plenty of items with letter outside the ASCII range. However, I don’t have the problem mjvanthoor has, since I use “boring” names. A folder with a playlist has a name like 1665457592_1. (Current Unix time and a running number for the day.). Inside these folders the files are named 01.lnk.mp3, 02.lnk.mp3 etc. Despite the name, they are physical copies of the files. I think I tried to use sym/hardlinks originally, but I did not get it to work. As for having the real titles in the file name - I don’t recall if I ever tried that and it failed because of the character set. And if there were such an issue, was that with Sonos or because I used Perl and Perl is not good with Unicode in file names. It was many years ago, and the system I have works for me. I don’t have to see these boring names in the Sonos application, but here tags, folders etc display correctly without issues.

Lyricist II
October 11, 2022

Like mjvanthoor I create playlists every night, and I also have plenty of items with letter outside the ASCII range. However, I don’t have the problem mjvanthoor has, since I use “boring” names. … Despite the name, they are physical copies of the files…

The reason why my setup isn’t working with Sonos is because the filenames in playlest get mangled on import. I’ve gone and just removed all the diatrics from the filenames, and now everything should work. I could also have tried it your way: generating a list of 250 files like I do now, copy those files into a folder with a random guid-like name, and then save the playlist to point to those files.

That would certainly work, but the one thing I don’t like about this setup is that I would need to copy about 3GB of music every night. (About 12 pieces per hour, for 12 hours is 144 pieces; say, 150 for a nice round number, at 20 MB per FLAC file, comes down to around 3GB.)

The strange thing is that Sonos does understand diatrics in file names, because the “normal” playlists (made through the Sonos app) work fine. They just don’t work when importing a playlist from the NAS.

 

Enthusiast II
October 11, 2022

I don’t use the normal playlists, but do they have the same format as the playlists you have on the NAS? I would guess that they have an internal format.

Lyricist II
October 11, 2022

I don’t know the format. They’re just the Sonos app playlists. You add the NAS and it reads the metadata from the files (and the file location, obviously) and then you can add the pieces from your library to a Sonos playlist in the app.

The playlist that is not working correctly (as in: files can’t be found and names are mangled) are just normal M3U text playlists I generate on the NAS.

controlav
Lead Maestro
October 12, 2022

I don’t use the normal playlists, but do they have the same format as the playlists you have on the NAS? I would guess that they have an internal format.

Sonos playlist are XML files in utf8 format. You can export (and import) them using my iOS app (see profile).

I believe the root of the OPs problem is the encoding of the playlist files, and I don’t know enough about M3U files to speak definitively on that.

Author of the leading independent Sonos apps for Android, MacOS, iOS, Windows and Xbox.