libimobiledevice / libplist

A library to handle Apple Property List format in binary or XML
https://libimobiledevice.org
GNU Lesser General Public License v2.1
532 stars 304 forks source link

Check for UTF8 BOM flag before importing xml data #205

Closed BlueMatthew closed 1 year ago

BlueMatthew commented 2 years ago

Sometimes iTunesMetadata in Info.plist generated by iTunes Backup is an UTF8 string with BOM flag. Attached is an example file.

Info.plist.zip

Refer: https://opensource.apple.com/source/CF/CF-1153.18/CFPropertyList.c.auto.html

nikias commented 2 years ago

Interesting, thanks for pointing this out. I will have to add detections and conversions for the other formats, but I think I can handle that :)