mirror of
https://github.com/taglib/taglib.git
synced 2026-05-25 13:08:55 -04:00
[WAV] Decode iXML as UTF-8
The iXML chunk in BWF/WAV files is specified as UTF-8 (per the EBU Tech 3285 supplement and the iXML spec). The reader was constructing the String without an encoding hint, which falls back to Latin-1 and mangles any non-ASCII bytes (e.g. Unicode in <NOTE>, <PROJECT>, or <TRACK_LIST> entries written by Sound Devices, Zaxcom, etc.).
This commit is contained in:
committed by
Urs Fleisch
parent
1e7bdae284
commit
59ed19d12f
@@ -276,7 +276,7 @@ void RIFF::WAV::File::read(bool readProperties)
|
||||
}
|
||||
else if(name == "iXML") {
|
||||
d->hasiXML = true;
|
||||
d->iXMLData = String(chunkData(i));
|
||||
d->iXMLData = String(chunkData(i), String::UTF8);
|
||||
}
|
||||
else if(name == "bext") {
|
||||
d->hasBEXT = true;
|
||||
|
||||
Reference in New Issue
Block a user