Encoding not always respected for album name
- /e/ version: 1.19.1-r2024011137239
- Device model(s): Samsung Galaxy S5 (klte)
- Developer mode enabled: no
- Device rooted: no
- Trackers blocker enabled: yes
Summary
Encoding not always respected for album name.
For some MP3 files, album name encoded as UTF-8 string, is read as ISO-8859-1 string, whereas for others it is read as UTF-8, which results in an incorrect display as string contains characters encoded with 2 bytes.
The problem
Steps to reproduce
- copy the two following files onto your phone:
06_Au_ras_des_pâquerettes 10_Caterpillar - in Music app, in Artists tab, select "Alain Souchon"
What is the current behavior?
Album name is "Au ras des pâquerettes" for a song, and "Au ras des pâquerettes" for the other one.
What is the expected correct behavior?
Music app fully compliant with UTF-8 tags, and display "Au ras des pâquerettes" for both songs, as they have same data for album tag.
Album tag (TALB) is identified as UTF-8 according to binary data (03 value at position 11):
54 41 4C 42 00 00 00 19 00 00 03 41 75 20 72 61 73 20 64 65 73 20 70 C3 A2 71...
Checked with MusicBrainz Picard, if encoding set to ISO-8859-1, 03 is replaced by 00.
Encoding does not seem to be taken into account.
Note that ID3v2.4 format is used.
Even if the album name is not interpreted as the same, there is only one album with the bad name (see picture), but for some other albums, it leads to duplicate album, one with the correct name and the other with bad one.
Technical informations
Relevant logs (adb logcat
)
Relevant screenshots
Solutions
Workaround
Possible fixes