XmlWriter, Strings and Byte Order Marks

Posted by: Rick Strahls WebLog, on 04 Feb 2007 | View original | Bookmarked: 0 time(s)

UTF-8 with an XmlWriter (or even HtmlTextWriter for that matter) can sometimes be tricky if youre sending output back into anything but a file. If you write data to a string or data to a stream that gets immediately fed into an output stream in a Web application or a POST buffer for an HTTP request you might find that the formatting of the XML generated usually will blow up.   Typically you have code like this:   MemoryStream ms = new MemoryStream();            ...

Advertisement
Category: XML | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1225 | Hits: 75

Similar Posts

  • XML Serializing Entity Framework entities with their children for SOA more
  • An Extensive Examination of LINQ: Using the Query Syntax more
  • The cost of eager loading in Entity Framework more
  • Machine Key Creator more
  • Delete Stored Procs and Navigations in the Entity Data Model more
  • Extension methods in C# 3.0 more
  • Converting SQL to LINQ, Part 1: The Basics (Bill Horst) more
  • Cross domain request in Silverlight 2.0 beta 2 more
  • MySQL Data truncation Error more
  • Machine Key Creator more

News Categories

.NET | ADO.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Community Server | dasBlog | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD