drewnoakes / metadata-extractor

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Apache License 2.0
2.54k stars 475 forks source link

Fix encoding problem when CodedCharacterSet is set to "ESC - A" #615

Closed kenwa closed 1 year ago

kenwa commented 1 year ago

Fixes #614

According to https://en.wikipedia.org/wiki/ISO/IEC_2022#cite_note-14.3.2-90 ISO-8859-1 should be used both when CodedCharacterSet is

 ESC % A
 ESC . A
 ESC - A

Previously, only the first two syntaxes was supported.