You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ASCII is however effectively a subset of UTF-8 (i.e. any valid ASCII is also valid UTF-8 by design). So treating these fields as UTF-8 encoded will give exactly the same behaviour for ASCII encoded text, but add support for the (now) much more common UTF-8.
To add support for UTF-8 encoded text fields in AIFF is as simple as changing the three text field loads to:
While the AIFF 1.3 spec says that text fields "contain pure ASCII characters", it also says:
And in practice AIFF files are nowadays often tagged with UTF-8 encoded text, rather than simple ASCII.
Trying to load such an AIFF file with TinyTag will currently result in an exception:
The encoding is hardcoded here (as well as two more places lower down):
https://github.com/devsnd/tinytag/blob/23bd79d601484856c95b07fdad927191f9203949/tinytag/tinytag.py#L1282
ASCII is however effectively a subset of UTF-8 (i.e. any valid ASCII is also valid UTF-8 by design). So treating these fields as UTF-8 encoded will give exactly the same behaviour for ASCII encoded text, but add support for the (now) much more common UTF-8.
To add support for UTF-8 encoded text fields in AIFF is as simple as changing the three text field loads to:
Sample File
An example of an AIFF file with UTF-8 encoded text fields can be found here:
https://chillhop.bandcamp.com/track/velvet
You'll need to click
Digital Track
to download the track in various formats, including AIFF. (Note you can choose to pay 0 to download it for free.)The text was updated successfully, but these errors were encountered: