Posts tagged with encoding
-
21 August 2009 - Tip: Force UTF8 or other encoding for XmlWriter with StringBuilder
When you use an XmlWriter or XmlTextWriter and the output target is StringBuilder or StringWriter then it is not possible to set the encoding to anything else then UTF-16. This tip explains why this is designed this way by Microsoft and offers you a way around this all-too restrictive behavior of the XmlWriter, to allow — read article