package main
import (
"log"
"os"
"github.com/dhowden/tag"
)
func main() {
f, err := os.Open("test.mp3")
if err != nil {
log.Fatal(err)
}
m, err := tag.ReadFrom(f)
if err != nil {
log.Fatal(err)
}
log.Println(m.Format())
}
On the attached file (in a zip to get github to accept it) test.zip
Gives this error:
error decoding tag description text: invalid encoding: expected even number of bytes for UTF-16 encoded text
The file has non-ASCII characters in the metadata.
I thought it might be a bad file but windows, foobar, etc. are fine with it and displaying its metadata.
Running this code:
On the attached file (in a zip to get github to accept it) test.zip
Gives this error:
The file has non-ASCII characters in the metadata. I thought it might be a bad file but windows, foobar, etc. are fine with it and displaying its metadata.