From bfba4b35ab9dbc842cc7d6e5458dfd7c720b0893 Mon Sep 17 00:00:00 2001 From: David Howden Date: Mon, 9 May 2016 22:37:03 +1000 Subject: [PATCH] Updated text decoding to fallback to ISO-8859-1. See #20 for more details. --- id3v2frames.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/id3v2frames.go b/id3v2frames.go index 8e66457..1a5b20f 100644 --- a/id3v2frames.go +++ b/id3v2frames.go @@ -337,8 +337,8 @@ func decodeText(enc byte, b []byte) (string, error) { case 3: // UTF-8 return string(b), nil - default: - return "", fmt.Errorf("invalid encoding byte %x", enc) + default: // Fallback to ISO-8859-1 + return decodeISO8859(b), nil } }