-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WWW → url_user → Mangled utf16/8? #119
Comments
Can you send me a sample of the .mp3 so I can see what's happening, please? |
Tried emailing you one now. 👍 |
I have looked at the file and basically your tagger (Mp3tag v2.83) is broken. It's writing the WXXX (url_user) ID3v2 frame with a text encoding of UTF-16, but the data it's writing is ISO-8859-1 (or UTF-8, can't tell with this example). getID3 sees the UTF-16 flag on the WXXX frame and parses the contents accordingly, and you end up with 13 (Chinese?) characters instead of 26 Latin characters. You may wish to report this to Mp3tag authors as a bug. |
That makes sense. I've sent them an email about it. Thank you for looking into it 🙂 |
Got the following response, and seems the URL in W* frames are supposed to be written in ISO-8859-1 regardless of the encoding field, and that the encoding field is referring to the Description?
|
Indeed, the Mp3tag authors are quite right. I have patched getID3 accordingly. Your test file should show up correctly now. |
Tried setting the WWW Extended Field, using Mp3tag v2.83, to
https://www.triangelos.net
, and when I looked for it in the output fromgetId3
I couldn't find it. Then I saw it was called url_user, but the content of it was mangled.How it looks in the tags array
How it looks in the "source"(?) array
Something not quite right happening in the copying there or something? 🤔
If it helps, I exported the resulting array using
var_export
: var_export.txtThe text was updated successfully, but these errors were encountered: