Hi, All!
Writing my own "winamp song to text file" script and have problem with striping ID3v1 tags.
Got ID3.au3 form >this topic, and it works great except ID3v1 tags — it returns them full 30 bytes length.
OK, it's not a problem, stripping all trailing (and leading, if any) spaces with
$Artist=StringStripWS(_ID3GetTagField("Artist"),3)
$Track=StringStripWS(_ID3GetTagField("Title"),3)
$Album=StringStripWS(_ID3GetTagField("Album"),3)
It works, but have found 1 mp3 file with ID3v1 tags, which returns trailing Ch(0) instead of Ch(32) (spaces)
(have checked it in my generated text file viewing it in hex).
And StringStripWS doesn't strips Ch(0) (while help says "Whitespace also includes the null string ( Chr(0) ) and the standard space ( Chr(32) )").
Also checked other ID3v1-only mp3's, and they returns Ch(20), so for now the only idea I have is to ignore such *wrong* mp3's,
but I also want to know is there any solution, or did I missed something?