polyfloyd / rust-id3

A rust library for reading and writing ID3 metadata
MIT License
245 stars 47 forks source link

Could id3 correctly parse tag generated by audacity on CJK system? #91

Closed kalxd closed 2 years ago

kalxd commented 2 years ago

Hi, all:

I modified one audio in the audacity, also change the metadata by using audacity editor and saved as abc.mp3:

metadata editor

here is the plain text:

however, I used id3 to parse the tag:

let tag = Tag::read_from_path("abc.mp3");
dbg!(tag);

it said

[src/main.rs:78] Tag::read_from_path(path) = Err(
    StringDecoding([]): data is not valid utf-8,
)

So is there a way to parse tag correctly? or it is the issue of audacity?

thanks.

polyfloyd commented 2 years ago

It should be able to. Could you please attach the problematic file?

kalxd commented 2 years ago

It should be able to. Could you please attach the problematic file?

of course, here is two files: origin.mp3 is the origin audio, and abc.mp3 is the product of audacity.

the link: https://github.com/kalxd/kalxd.github.io/tree/master/attachment

id3 can parse the origin.mp3, but not the abc.mp3, I didn't know the reason either.

polyfloyd commented 2 years ago

Thanks! Will investigate when I have time

polyfloyd commented 2 years ago

Fixed! Thank you for reporting :)