19 writes to Encoding
Extensibility.MessageEncoder.IntegrationTests (1)
CustomTextMessageEncoder.cs (1)
25_writerSettings.Encoding = Encoding.GetEncoding(factory.CharSet);
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
420using (var writer = XmlWriter.Create(memory, new XmlWriterSettings { Encoding = Encoding.UTF8 }))
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
XmlDataContractSerializerOutputFormatter.cs (1)
219writerSettings.Encoding = selectedEncoding;
XmlSerializerOutputFormatter.cs (1)
198writerSettings.Encoding = selectedEncoding;
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
628Encoding = Encoding.UTF8,
ReachFramework (1)
PrintConfig\PrintCapabilitesWriter.cs (1)
31settings.Encoding = Encoding.UTF8;
Roslyn.Test.PdbUtilities (1)
Reader\Token2SourceLineExporter.cs (1)
1132Encoding = Encoding.UTF8,
System.Data.Common (1)
System\Data\SQLTypes\SqlXml.cs (1)
182writerSettings.Encoding = Encoding.GetEncoding("utf-16");
System.IO.Packaging (3)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
467using (XmlWriter writer = XmlWriter.Create(s, new XmlWriterSettings { Encoding = System.Text.Encoding.UTF8 }))
System\IO\Packaging\PartBasedPackageProperties.cs (1)
687_xmlWriter = XmlWriter.Create(writerStream, new XmlWriterSettings { Encoding = System.Text.Encoding.UTF8 });
System\IO\Packaging\ZipPackage.cs (1)
911using (XmlWriter writer = XmlWriter.Create(s, new XmlWriterSettings { Encoding = System.Text.Encoding.UTF8 }))
System.Private.Xml (5)
System\Xml\Core\XmlEncodedRawTextWriter.cs (1)
194settings.Encoding = _encoding!;
System\Xml\Core\XmlUtf8RawTextWriter.cs (1)
141settings.Encoding = _encoding;
System\Xml\Core\XmlWriterSettings.cs (1)
654Encoding = Encoding.GetEncoding(reader.ReadInt32());
System\Xml\Serialization\XmlSerializer.cs (1)
143private static readonly XmlWriterSettings s_writerSettings = new XmlWriterSettings() { Encoding = new UTF8Encoding(false), Indent = true };
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
668settings.Encoding = encoding;
System.Private.Xml.Linq (3)
System\Xml\Linq\XDocument.cs (3)
596ws.Encoding = Encoding.GetEncoding(_declaration.Encoding); 629ws.Encoding = Encoding.GetEncoding(_declaration.Encoding); 773ws.Encoding = Encoding.GetEncoding(_declaration.Encoding);
9 references to Encoding
Extensibility.MessageEncoder.IntegrationTests (1)
CustomTextMessageEncoder.cs (1)
27_factory.MediaType, _writerSettings.Encoding.WebName);
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
XmlDataContractSerializerOutputFormatter.cs (1)
268await using (var textWriter = context.WriterFactory(responseStream, writerSettings.Encoding))
System.Private.Xml (7)
System\Xml\Core\XmlEncodedRawTextWriter.cs (2)
139this._encoding = settings.Encoding; 163_encoding = (Encoding)settings.Encoding.Clone();
System\Xml\Core\XmlUtf8RawTextWriter.cs (1)
102_encoding = settings.Encoding;
System\Xml\Core\XmlWriterSettings.cs (4)
368if (Encoding.WebName == "utf-8") 603Debug.Assert(Encoding.Equals(Encoding.GetEncoding(Encoding.CodePage)), "Cannot serialize encoding correctly"); 604writer.Write(Encoding.CodePage);