Hello,
I need to create a XmlReader for a stream with encoding detected from the stream and, if it cannot be detected or if it is detected as UTF-8, use UTF-8 that does not throw on invalid characters.
What are my options - do I need to manually detect the encoding first, pass it using XmlReaderContext after removing the preambles myself? Sounds like there should be an easier way...
Thanks,
Jan