Closed tp-m closed 1 year ago
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.
No longer needed after commit 7e5b2c7fcd23ec7fb50d3da63620c81f3bf94de0 I think.
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.