xml-rs icon indicating copy to clipboard operation
xml-rs copied to clipboard

reader: add from_bytes() convenience function that strips any BOM

Open tp-m opened this issue 3 years ago • 0 comments

XML coming from external sources sometimes has an UTF-8 marker at the beginning, which is invalid UTF-8 and will cause parse errors, so add a from_bytes() convenience method that strips such BOMs at the beginning.

tp-m avatar Dec 16 '21 17:12 tp-m