Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

XmlReader with encoding fallback

$
0
0
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


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>