Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Support for UTF-8 playlists? (Read 8460 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Support for UTF-8 playlists?

Hello everybody

I'm thinking of changing from WinAmp to foobar2000, but find that UTF-8 encoded playlists don't appear to be fully supported (they load fine in WinAmp). I've got a playlist with multiple lines and some line appear to load correctly, e.g.:

E:\music\Composers Q-S\Strauss, Johann II\Eine Nacht in Venedig - Ouverture (Berlin PO, Harnoncourt, 1998)\02-Johann Strauss , Ouverture Eine Nacht in Venedig - Berliner Urfassung.flac

but others appear in the playlist as "?-?" e.g.

E:\music\Composers D-G\Debussy, Claude\Orchestral & Concertante\L'enfant prodigue (Royal PO, Beecham, 1959)\09-Claude Debussy , 'L'Enfant prodigue' - Scène lyrique.flac

The common feature of lines which so fail is that they contain non-ASCII characters. In the above line the "è" of "Scène lyrique" is represented by the byte sequence C3 A8 (which is correctly encoded I believe).

Does foobar2000 not support such playlists?

[EDIT: this is with foobar2000 v1.1.11 on Windows 7 64-bit]

[EDIT: I have uploaded the problematic playlist. See http://www.hydrogenaudio.org/forums/index....showtopic=93906 ]

- Alex.

Support for UTF-8 playlists?

Reply #1
As far as I remember foobar2000 requires a UTF-8 byte order marker (BOM) for .m3u8 files. If this is missing it will assume the file is using a different encoding (ISO 8859-1, ANSI - I don't remember). As far as I can tell your file is correctly UTF-8 encoded but has no BOM. However this could have been lost during the download.

Support for UTF-8 playlists?

Reply #2
As far as I remember foobar2000 requires a UTF-8 byte order marker (BOM) for .m3u8 files. If this is missing it will assume the file is using a different encoding (ISO 8859-1, ANSI - I don't remember). As far as I can tell your file is correctly UTF-8 encoded but has no BOM. However this could have been lost during the download.

Thanks for the response.

I tried prepending a BOM, but still no joy :-(

The Unicode spec states "se of a BOM is neither required nor recommended for UTF-8" so this would be a surprising requirement.

Surely a m3u8 playlist should be encoded in UTF-8 as described at https://tools.ietf.org/html/draft-pantos-ht...ve-streaming-07 ?

I think this is a bug in fb2000. It would be very useful for users of non-Western languages if it were fixed :-)

- Alex.




Support for UTF-8 playlists?

Reply #3
After reading your first port again I wonder whether foobar2000 really has problems loading your playlist. Can you play all the files in the playlist after loading it with foobar2000? What about the ones displaying as "?-?"?

Support for UTF-8 playlists?

Reply #4
After reading your first port again I wonder whether foobar2000 really has problems loading your playlist. Can you play all the files in the playlist after loading it with foobar2000? What about the ones displaying as "?-?"?


No, they don't play -- but my original post was wrong in saying they appear as "? - ?" -- they don't appear at all (those ?-? are the untitled "silence" tracks in the playlist).

- Alex.

 

Support for UTF-8 playlists?

Reply #5
I tried prepending a BOM, but still no joy :-(

I'm unable to reproduce this problem. When I prepend the bytes EF BB BF to a UTF-8 encoded .m3u8 file, then open the file in foobar2000, the non-ASCII paths are loaded properly into foobar's playlist, as long as they exist on disk. This is on Windows 7 64-bit, with foobar 1.1.18.

The Unicode spec states "se of a BOM is neither required nor recommended for UTF-8" so this would be a surprising requirement.

Surely a m3u8 playlist should be encoded in UTF-8

I fully agree that foobar2000 should assume a file whose name ends with ".m3u8" is UTF-8 encoded. It would be nice to see this change made in a future version.

Support for UTF-8 playlists?

Reply #6
I tried prepending a BOM...

No, you didn't.
The Unicode spec states "se of a BOM is neither required nor recommended for UTF-8" so this would be a surprising requirement.

The Unicode Consorc. is not the author of foobar so... BOM is obligatory (and nice solution by the way (IMHO)).

Windows 7: http://laban.rs/junk/playBOM.zip
Everything works now. Let me know.
Cheers.

Re: Support for UTF-8 playlists?

Reply #7
Hello everybody

I'm thinking of changing from WinAmp to foobar2000, but find that UTF-8 encoded playlists don't appear to be fully supported (they load fine in WinAmp). I've got a playlist with multiple lines and some line appear to load correctly, e.g.:

E:\music\Composers Q-S\Strauss, Johann II\Eine Nacht in Venedig - Ouverture (Berlin PO, Harnoncourt, 1998)\02-Johann Strauss , Ouverture Eine Nacht in Venedig - Berliner Urfassung.flac

but others appear in the playlist as "?-?" e.g.

E:\music\Composers D-G\Debussy, Claude\Orchestral & Concertante\L'enfant prodigue (Royal PO, Beecham, 1959)\09-Claude Debussy , 'L'Enfant prodigue' - Scène lyrique.flac

The common feature of lines which so fail is that they contain non-ASCII characters. In the above line the "è" of "Scène lyrique" is represented by the byte sequence C3 A8 (which is correctly encoded I believe).

Does foobar2000 not support such playlists?

[EDIT: this is with foobar2000 v1.1.11 on Windows 7 64-bit]

[EDIT: I have uploaded the problematic playlist. See http://www.hydrogenaudio.org/forums/index....showtopic=93906 ]

- Alex.

Hi!, Had the same problem, but I solved opening the playlist with notepad, and then saving as, in the "Encoding", select ANSI instead of UTF-8, that's the only way I was able to get my m3u playlists in foobar

Re: Support for UTF-8 playlists?

Reply #8
Hi!, Had the same problem, but I solved opening the playlist with notepad, and then saving as, in the "Encoding", select ANSI instead of UTF-8, that's the only way I was able to get my m3u playlists in foobar
Did you try saving them as .m3u8 (UTF-8 encoded audio playlist)?