1166 Illegal #EXTINFUTF token in Send to... .m3u... [6907]

Beta Testing for Windows Products and plugins

Moderator: Gurus

chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

1166 Illegal #EXTINFUTF token in Send to... .m3u... [6907]

Post by chrisjj »

...playlist

Send to... .m3u playlist can insert the illegal (i.e. non-compliant with original or extended m3u specification) #EXTIFUTF8 token e.g.

#EXTINFUTF8:149,Juan D'Arienzo canta Alberto Echagüe - Indiferencia

This is undesirable because it can cause failure of interoperation with other programs. If anyone knows of another publically-released program that is compatible with this token, please do say.

EDIT(TC): Tracked at http://www.ventismedia.com/mantis/view.php?id=6907
Chris
jiri
Posts: 5431
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Post by jiri »

You can disable this in Options\Playlists\Use Unicode (UTF-8 encoding) for M3U playlists.

Jiri
Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

Post by Steegy »

This is undesirable because it can cause failure of interoperation with other programs. If anyone knows of another publically-released program that is compatible with this token, please do say.
Winamp, I think.
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
Henry

Post by Henry »

jiri wrote:You can disable this in Options\Playlists\Use Unicode (UTF-8 encoding) for M3U playlists.
The option does work when the playlist save is requested by a plug-in and the Winamp-API. You still get #UTF8 entries after disabling this option. Please check. Thanks.
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Post by chrisjj »

jiri wrote:You can disable this in Options\Playlists\Use Unicode (UTF-8 encoding) for M3U playlists.
Thanks, but that has the unwanted side effect of disabling UTF-8 encoding! ;)
Chris
jiri
Posts: 5431
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Post by jiri »

The option does work when the playlist save is requested by a plug-in and the Winamp-API. You still get #UTF8 entries after disabling this option. Please check. Thanks.
That's right, it will be fixed. I.e. from now on the only exception will be MediaMonkey.m3u in {AppData} folder, which _has_ to contain UTF-8 encoded paths in order to properly re-load Now Playing after restart.
Thanks, but that has the unwanted side effect of disabling UTF-8 encoding! ;)
No, this option exactly means to do or don't include these extended lines (containing UTF-8 encoded info). The rest of M3Us is always plain 8-bit ASCII (according to the current codepage) due to compatibility.

Jiri

Jiri
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Post by chrisjj »

jiri wrote:
Thanks, but that has the unwanted side effect of disabling UTF-8 encoding! ;)
No, this option exactly means to do or don't include these extended lines (containing UTF-8 encoded info).
Actually not, according to Options:

[ ] Use Unicode (UTF-8 encoding) for M3U playlists

I'd really like it to do only what it says, since the problem I'm reporting is the non-standard token not the UTF-8. However I take it you've decided to disallow standard m3u format in UTF-8, so I'll work-around. Thanks.

Suggestion to coders: fix this checkbox label to accord with behaviour.
Suggestion to Help author: document this non-standard m3u format.
Chris
jiri
Posts: 5431
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Post by jiri »

Well, there isn't anything like a 'standard m3u format in UTF-8'. M3Us are always in plain ASCII and that extension we added was an attempt to add Unicode support in as backward compatible way as possible. That said, for 3.1 we'll possibly add support for M3U8, which is a simple M3U, but in UTF-8. It's currently supported at least by WinAmp, but probably not by many other apps.

Jiri
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Post by chrisjj »

jiri wrote:Well, there isn't anything like a 'standard m3u format in UTF-8'. M3Us are always in plain ASCII
I beg to differ. The M3U spec doesn't prescribe the text file encoding and there's nothing wrong with ANSI (which MM and WinAmp do support) nor Unicode except apps haven't yet been coded for that.
for 3.1 we'll possibly add support for M3U8, which is a simple M3U, but in UTF-8. It's currently supported at least by WinAmp
Shame that Winamp has made a new extension rather than just used BOMmed UTF-8 like the rest of the Windows world! ;)
Chris
Henry

Post by Henry »

jiri wrote:
The option does work when the playlist save is requested by a plug-in and the Winamp-API. You still get #UTF8 entries after disabling this option. Please check. Thanks.
That's right, it will be fixed.
Thank you!
jiri
Posts: 5431
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Post by jiri »

I beg to differ. The M3U spec doesn't prescribe the text file encoding and there's nothing wrong with ANSI (which MM and WinAmp do support) nor Unicode except apps haven't yet been coded for that.
You certainly can store Unicode text directly to M3U, but you must start it with BOM, no matter which encoding is used (UTF-8, UTF-16 or whatever). This can certainly be easily done and is in some sense better that WinAmp's M3U8. However, compatibility issues make this solution a little problematic.

Jiri
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Post by chrisjj »

jiri wrote:This can certainly be easily done and is in some sense better that WinAmp's M3U8.
Well, I'd say if it works, it is miles better, because AFAICT Winamp cannot play its own .M3U8's! :)
Chris
Post Reply