-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Wav: Failed to read RIFF INFO item value #373
Comments
Hello! Your file has items that are not UTF-8 encoded. What is your local character encoding? If Windows is able to read it, that means the file is using your system encoding. |
UTF-16. |
Hm. It's unfortunate that RIFF doesn't specify a text encoding. We would be able to somewhat reliably detect UTF-16 LE, but there's no BOM either. The only way for us to know ahead of time how to decode the text would be using GetACP() from Windows. Don't know how I feel about having platform-specific code in Lofty, though. |
Maybe we can simply set the way to decode text when reading riff info. Obviously it is not a good way to fix it though. And this is the way how the Taglib support it. StringHandler
|
That would also work. Gonna have to think about this one. For now I'd just recommend changing the encoding of your files to UTF-8, that's what most libraries (outside of TagLib) will exclusively support. |
Reproducer
I tried this code:
The lofty version is "0.18.2"
Summary
There is an error "Wav: Failed to read RIFF INFO item value"
The Windows Properties page can read the tags in it. I can also play it on Windows Media Player.
Can anyone provide some information about this? Thanks.
Expected behavior
Read tag correctly.
Assets
大哉乾元(洛天依人声版)_MMM.wav
The text was updated successfully, but these errors were encountered: