Subject: | Doesn't work with unicode tags |
If I'm trying to read tags in unicode (created by iTunes for example)
it doesn't work properly.
F.e.
#!/usr/bin/perl
use MP3::ID3Lib;
$filename = $ARGV[0];
my $id3 = MP3::ID3Lib->new($filename);
foreach my $frame (@{$id3->frames}) {
my $code = $frame->code;
my $description = $frame->description;
my $value = $frame->value;
print "$code $description: $value\n";
}
returns:
TYER Year: 2001
TCON Content type: (12)
TIT2 Title/songname/content description: (12)
TPE1 Lead performer(s)/Soloist(s): (12)
TALB Album/Movie/Show title: (12)
Obviously (12) is legacy from TCON field from some unzeroed buffer.
With non-unicode tags it works ok.