If you use foobar2000 0.9 beta 10, then there's foo_utils.
http://foosion.foobar2000.org/beta/
In Preferences -> Components -> Playlist tools:
Header:
<?xml version="1.0" encoding="UTF-8"?>$crlf()
<playlist version="1" xmlns="http://xspf.org/ns/0/">$crlf()
<title>foobar2000 Generated XSPF Playlist</title>$crlf()
<creator>Insert your name here</creator>$crlf()
<info>Insert your homepage here</info>$crlf()
<trackList>$crlf()
Body
<track>$crlf()
<location>file:///$replace(%_path%, ,%%20,\,/)</location>$crlf()
[<creator>$replace(%track artist%,'',',",",<,<,>,>,&,&)</creator>]$crlf()
[<album>$replace(%album%,'',',",",<,<,>,>,&,&)</album>]$crlf()
[<trackNum>%_list_number%</trackNum>]$crlf()
[<title>$replace(%title%,'',',",",<,<,>,>,&,&)</title>]$crlf()
[<annotation>$replace(%comment%,'',',",",<,<,>,>,&,&)</annotation>]$crlf()
//Workaround applied, thanks to Mr_Rabid_Teddybear
//' won't work with MSIE. Use "& # 3 9;" without the spaces or quotes if you use MSIE.
[<duration>$mul(
$left($replace(%_length_seconds_fp%,.,),
$add($strchr(%_length_seconds_fp%,.),2))
$if($greater($len($insert(%_length_seconds_fp%,,
$strchr(%_length_seconds_fp%,.))),3),
$insert(%_length_seconds_fp%,.,
$add($strchr(%_length_seconds_fp%,.),3)),
$repeat(0,$sub(3,$len($insert(%_length_seconds_fp%,,
$strchr(%_length_seconds_fp%,.))))))
,1)</duration>]$crlf()
//Thanks to Silverbolt for coming up with millisecond calculation instead of $mul(%_length_seconds_fp%,1000)
</track>$crlf()
Footer
</trackList>$crlf()
</playlist>$crlf()
The above code might be buggy. Use at your own risk.
Bind a keyboard shortcut to Context -> Text tools -> Copy text / Save text...
(I recommend unbinding Context -> Copy name(s) if it exists and binding a new keyboard shortcut as shown above.)
Select all files that you want to be in a new XSPF playlist, and issue the Copy text / Save text... command. If you copied text, the XSPF playlist will now be in your clipboard. Paste it into a UTF-8-aware text-editor. If you chose to save text, save it as a new file.
--- --- ---
If you use foobar2000 0.8.3, then there's foo_playlist_output and foo_playlist_output_custom. It's fairly similar, but I don't know how well UTF-8 is supported in Windows 9x.
http://www.hydrogenaudio.org/forums/index....showtopic=33795
http://www.hydrogenaudio.org/forums/index....showtopic=33895