1 type derived from UTF8Encoding
mscorlib (1)
system\text\utf8encoding.cs (1)
59internal sealed class UTF8EncodingSealed : UTF8Encoding
97 instantiations of UTF8Encoding
mscorlib (10)
system\io\binaryreader.cs (1)
45public BinaryReader(Stream input) : this(input, new UTF8Encoding(), false) {
system\io\binarywriter.cs (2)
63_encoding = new UTF8Encoding(false, true); 67public BinaryWriter(Stream output) : this(output, new UTF8Encoding(false, true), false)
system\io\streamwriter.cs (2)
57public new static readonly StreamWriter Null = new StreamWriter(Stream.Null, new UTF8Encoding(false, true), MinBufferSize, true); 112UTF8Encoding noBOM = new UTF8Encoding(false, true);
system\runtime\serialization\formatters\binary\binaryparser.cs (1)
47private static Encoding encoding = new UTF8Encoding(false, true);
system\security\cryptography\passwordderivebytes.cs (1)
75this ((new UTF8Encoding(false)).GetBytes(strPassword), rgbSalt, strHashName, iterations, cspParams) {}
system\security\cryptography\rfc2898derivebytes.cs (2)
75m_password = new UTF8Encoding(false).GetBytes(password); 89: this(new UTF8Encoding(false).GetBytes(password), salt, iterations, hashAlgorithm) {
system\text\encoding.cs (1)
1549if (utf8Encoding == null) utf8Encoding = new UTF8Encoding(true);
PresentationBuildTasks (15)
BuildTasks\Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (1)
699using (StreamWriter writer = new StreamWriter(memStream, new UTF8Encoding(false)))
BuildTasks\Microsoft\Build\Tasks\Windows\MergeLocalizationDirectives.cs (1)
70new UTF8Encoding(true)
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (1)
957UTF8Encoding encoding = new UTF8Encoding(true);
BuildTasks\MS\Internal\Localization\LocalizationParserHooks.cs (1)
116using (XmlTextWriter writer = new XmlTextWriter(memStream, new UTF8Encoding(false)))
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (3)
623using (StreamWriter codeStreamWriter = new StreamWriter(codeMemStream, new UTF8Encoding(false))) 2877using (StreamWriter codeStreamWriter = new StreamWriter(codeMemStream, new UTF8Encoding(false))) 3183using (StreamWriter codeStreamWriter = new StreamWriter(codeMemStream, new UTF8Encoding(false)))
BuildTasks\MS\Internal\Tasks\CompilerLocalReference.cs (1)
203using (StreamWriter sw = new StreamWriter(memStream, new UTF8Encoding(false)))
BuildTasks\MS\Internal\Tasks\CompilerState.cs (1)
138using (StreamWriter sw = new StreamWriter(memStream, new UTF8Encoding(false)))
BuildTasks\MS\Internal\Tasks\TaskFileService.cs (5)
150UTF8Encoding utf8Encoding = new UTF8Encoding(); 302UTF8Encoding utf8Encoding = new UTF8Encoding(); 315using (StreamWriter sw = new StreamWriter(destinationFile, false, new UTF8Encoding(true))) 351UTF8Encoding utf8Encoding = new UTF8Encoding(); 356using (StreamWriter sw = new StreamWriter(destinationFile, false, new UTF8Encoding(true)))
Framework\System\Windows\Markup\BamlRecordWriter.cs (1)
71_bamlBinaryWriter = new BamlBinaryWriter(stream,new System.Text.UTF8Encoding());
PresentationCore (2)
Core\CSharp\System\Windows\DataObject.cs (2)
2342utf8Encoding = new UTF8Encoding(); 3613UTF8Encoding utf8Encoding = new UTF8Encoding();
PresentationFramework (3)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
306UTF8Encoding encoding = new UTF8Encoding();
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
5482_binaryReader = new BamlBinaryReader(BamlStream, new System.Text.UTF8Encoding());
src\Framework\System\Windows\Markup\BamlRecordWriter.cs (1)
71_bamlBinaryWriter = new BamlBinaryWriter(stream,new System.Text.UTF8Encoding());
System (2)
compmod\system\diagnostics\TextWriterTraceListener.cs (1)
206Encoding noBOMwithFallback = GetEncodingWithFallback(new UTF8Encoding(false));
net\System\Net\HttpListenerRequestUriBuilder.cs (1)
53utf8Encoding = new UTF8Encoding(false, true);
System.AddIn (3)
System\Addin\MiniReflection\MetadataReader\Metadata.cs (1)
40private static readonly UTF8Encoding Encoder = new UTF8Encoding(false, true);
System\Addin\MiniReflection\MetadataReader\PEFileReader.cs (1)
46private static readonly UTF8Encoding Encoder = new UTF8Encoding(false, true);
System\Addin\MiniReflection\TypeInfo.cs (1)
68private readonly static UTF8Encoding s_encoder = new UTF8Encoding(false, true);
System.Core (1)
System\Diagnostics\EventSchemaTraceListener.cs (1)
722encNoBOMwithFallback = GetEncodingWithFallback(new UTF8Encoding(false));
System.Data.Services (1)
System\Data\Services\HttpProcessUtility.cs (1)
36internal static readonly UTF8Encoding EncodingUtf8NoPreamble = new UTF8Encoding(false, true);
System.Data.Services.Client (1)
parent\Server\System\Data\Services\HttpProcessUtility.cs (1)
36internal static readonly UTF8Encoding EncodingUtf8NoPreamble = new UTF8Encoding(false, true);
System.IdentityModel (4)
System\IdentityModel\CanonicalFormWriter.cs (1)
14internal static readonly UTF8Encoding Utf8WithoutPreamble = new UTF8Encoding(false);
System\IdentityModel\Tokens\WSSecurityJan2004.cs (3)
359bytes = new UTF8Encoding().GetBytes(reader.ReadContentAsString()); 399writer.WriteString(new UTF8Encoding().GetString(keyIdentifier, 0, keyIdentifier.Length)); 448writer.WriteString(new UTF8Encoding().GetString(keyIdentifier, 0, keyIdentifier.Length));
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\CardSpaceSelector.cs (1)
367UTF8Encoding utf8 = new UTF8Encoding();
System.Runtime.Remoting (7)
channels\http\httpremotinghandler.cs (1)
302StreamWriter writer = new StreamWriter(outputStream, new UTF8Encoding(false));
channels\http\httpstreams.cs (1)
562StreamWriter writer = new StreamWriter(outputStream, new UTF8Encoding(false));
metadata\metadata.cs (4)
74 TextWriter tw = new StreamWriter(outputStream, new UTF8Encoding(false, true)); 87TextWriter tw = new StreamWriter(outputStream, new UTF8Encoding(false, true)); 154StreamWriter fsWriter = new StreamWriter(fs, new UTF8Encoding(false, true)); 268TextWriter tw = new StreamWriter(outputStream, new UTF8Encoding(false, true));
metadata\wsdlparser.cs (1)
3275TextWriter textWriter = new StreamWriter(_completeFileName, false, new UTF8Encoding(false));
System.Runtime.Serialization (8)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (2)
30static readonly UTF8Encoding SafeUTF8 = new UTF8Encoding(false, false); 42static readonly UTF8Encoding ValidatingUTF8 = new UTF8Encoding(false, true);
System\Xml\EncodingStreamWrapper.cs (2)
21static readonly UTF8Encoding SafeUTF8 = new UTF8Encoding(false, false); 24static readonly UTF8Encoding ValidatingUTF8 = new UTF8Encoding(false, true);
System\Xml\ValueHandle.cs (1)
741UTF8Encoding encoding = new UTF8Encoding(false, true);
System\Xml\XmlConverter.cs (1)
50utf8Encoding = new UTF8Encoding(false, true);
System\Xml\XmlExceptionHelper.cs (1)
278return CreateEncodingException(new System.Text.UTF8Encoding(false, false).GetString(buffer, offset, count), exception);
System\Xml\XmlStreamNodeWriter.cs (1)
25static UTF8Encoding UTF8Encoding = new UTF8Encoding(false, true);
System.Security (12)
system\security\cryptography\dataprotector.cs (1)
88using (BinaryWriter stream = new BinaryWriter(new CryptoStream(new MemoryStream(), sha256, CryptoStreamMode.Write), new UTF8Encoding(false, true)))
system\security\cryptography\xml\c14nutil.cs (8)
240UTF8Encoding utf8 = new UTF8Encoding(false); 320UTF8Encoding utf8 = new UTF8Encoding(false); 351UTF8Encoding utf8 = new UTF8Encoding(false); 379UTF8Encoding utf8 = new UTF8Encoding(false); 407UTF8Encoding utf8 = new UTF8Encoding(false); 451UTF8Encoding utf8 = new UTF8Encoding(false); 503UTF8Encoding utf8 = new UTF8Encoding(false); 572UTF8Encoding utf8 = new UTF8Encoding(false);
system\security\cryptography\xml\canonicalxml.cs (1)
106UTF8Encoding utf8 = new UTF8Encoding(false);
system\security\cryptography\xml\exccanonicalxml.cs (1)
62UTF8Encoding utf8 = new UTF8Encoding(false);
system\security\cryptography\xml\transform.cs (1)
630UTF8Encoding utf8 = new UTF8Encoding(false);
System.ServiceModel (3)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
692byte[] inputBytes = new UTF8Encoding().GetBytes(inputString);
System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceSchemas.cs (1)
827UTF8Encoding utf8 = new UTF8Encoding();
System\ServiceModel\Configuration\IssuedTokenParametersElement.cs (1)
303string commentString = new UTF8Encoding().GetString(memoryStream.GetBuffer(), 0, (int)memoryStream.Length);
System.ServiceModel.Web (1)
System\ServiceModel\Channels\WebScriptMetadataMessageEncoderFactory.cs (1)
36static UTF8Encoding UTF8EncodingWithoutByteOrderMark = new UTF8Encoding(false);
System.Web (1)
Security\Cryptography\CryptoUtil.cs (1)
22public static readonly UTF8Encoding SecureUTF8Encoding = new UTF8Encoding(encoderShouldEmitUTF8Identifier: false, throwOnInvalidBytes: true);
System.Web.Extensions (1)
Script\Services\RestHandler.cs (1)
231using (StreamWriter writer = new StreamWriter(context.Response.OutputStream, new UTF8Encoding(false))) {
System.Web.Services (14)
System\Web\Services\Discovery\ContractReference.cs (1)
170((ServiceDescription) document).Write(new StreamWriter(stream, new UTF8Encoding(false)));
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (1)
512ser.Serialize(new StreamWriter(topLevelFile, new UTF8Encoding(false)), results);
System\Web\Services\Discovery\DiscoveryDocument.cs (1)
109TextWriter writer = new StreamWriter(stream, new UTF8Encoding(false));
System\Web\Services\Discovery\DiscoveryDocumentReference.cs (1)
103WebServicesSection.Current.DiscoveryDocumentSerializer.Serialize(new StreamWriter(stream, new UTF8Encoding(false)), document);
System\Web\Services\Discovery\DiscoveryRequestHandler.cs (1)
103StreamWriter writer = new StreamWriter(memStream, new UTF8Encoding(false));
System\Web\Services\Discovery\DynamicDiscoveryDocument.cs (1)
57xmlSerializer.Serialize(new StreamWriter(stream, new UTF8Encoding(false)), this);
System\Web\Services\Discovery\SchemaReference.cs (1)
131((XmlSchema)document).Write(new StreamWriter(stream, new UTF8Encoding(false)));
System\Web\Services\Protocols\DiscoveryServerProtocol.cs (2)
269Encoding encoding = new UTF8Encoding(false); 344StreamWriter writer = new StreamWriter(outputStream, new UTF8Encoding(false));
System\Web\Services\Protocols\HttpServerProtocol.cs (1)
225StreamWriter writer = new StreamWriter(outputStream, new UTF8Encoding(false));
System\Web\Services\Protocols\SoapClientProtocol.cs (1)
240XmlTextWriter writer = new XmlTextWriter(new StreamWriter(message.Stream, RequestEncoding != null ? RequestEncoding : new UTF8Encoding(false), bufferSize));
System\Web\Services\Protocols\SoapServerProtocol.cs (2)
254return new XmlTextWriter(new StreamWriter(message.Stream, new UTF8Encoding(false), bufferSize)); 815StreamWriter sw = new StreamWriter(outputStream, new UTF8Encoding(false));
System\Web\Services\Protocols\XmlReturnWriter.cs (1)
33Encoding encoding = new UTF8Encoding(false);
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataObject.cs (1)
1136System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
System.Xml (4)
System\Xml\Core\XmlTextReaderImpl.cs (3)
2928return new UTF8Encoding( true, true ); 3008newEncoding = new UTF8Encoding( true, true ); 3067SwitchEncoding( new UTF8Encoding( true, true ) );
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
977return SwitchEncodingAsync( new UTF8Encoding( true, true ) );
WindowsBase (2)
Base\MS\Internal\IO\Packaging\CompoundFile\UserUseLicenseDictionaryLoader.cs (1)
161private UTF8Encoding _utf8Encoding = new UTF8Encoding();
Base\System\Windows\Markup\XmlCompatibilityReader.cs (1)
745return new System.Text.UTF8Encoding(true, true);
57 references to UTF8Encoding
mscorlib (7)
system\io\streamwriter.cs (1)
112UTF8Encoding noBOM = new UTF8Encoding(false, true);
system\text\encoding.cs (2)
90private static readonly UTF8Encoding.UTF8EncodingSealed s_defaultUtf8EncodingNoBom = new UTF8Encoding.UTF8EncodingSealed(encoderShouldEmitUTF8Identifier: false);
system\text\utf8encoding.cs (4)
2403UTF8Encoding that = value as UTF8Encoding; 2427public UTF8Encoder(UTF8Encoding encoding) : base(encoding) 2502public UTF8Decoder(UTF8Encoding encoding) : base(encoding)
PresentationBuildTasks (4)
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (1)
957UTF8Encoding encoding = new UTF8Encoding(true);
BuildTasks\MS\Internal\Tasks\TaskFileService.cs (3)
150UTF8Encoding utf8Encoding = new UTF8Encoding(); 302UTF8Encoding utf8Encoding = new UTF8Encoding(); 351UTF8Encoding utf8Encoding = new UTF8Encoding();
PresentationCore (2)
Core\CSharp\System\Windows\DataObject.cs (2)
2334UTF8Encoding utf8Encoding; 3613UTF8Encoding utf8Encoding = new UTF8Encoding();
PresentationFramework (3)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
306UTF8Encoding encoding = new UTF8Encoding();
src\Framework\System\Windows\Documents\FixedSchema.cs (1)
54if (!(base.Encoding is UTF8Encoding) && !(base.Encoding is UnicodeEncoding))
src\Framework\System\Windows\Markup\XamlReader.cs (1)
77Stream xamlStream = new MemoryStream(UTF8Encoding.Default.GetBytes(xamlText));
System (3)
net\System\Net\WebSockets\WebSocketBase.cs (1)
2169byte[] blob = UTF8Encoding.UTF8.GetBytes(CloseReason);
net\System\Net\WebSockets\WebSocketHelpers.cs (1)
438length = UTF8Encoding.UTF8.GetByteCount(statusDescription);
sys\system\io\ports\SerialPort.cs (1)
303if (!(value is ASCIIEncoding || value is UTF8Encoding || value is UnicodeEncoding || value is UTF32Encoding ||
System.AddIn (3)
System\Addin\MiniReflection\MetadataReader\Metadata.cs (1)
40private static readonly UTF8Encoding Encoder = new UTF8Encoding(false, true);
System\Addin\MiniReflection\MetadataReader\PEFileReader.cs (1)
46private static readonly UTF8Encoding Encoder = new UTF8Encoding(false, true);
System\Addin\MiniReflection\TypeInfo.cs (1)
68private readonly static UTF8Encoding s_encoder = new UTF8Encoding(false, true);
System.Data.Services (1)
System\Data\Services\HttpProcessUtility.cs (1)
36internal static readonly UTF8Encoding EncodingUtf8NoPreamble = new UTF8Encoding(false, true);
System.Data.Services.Client (1)
parent\Server\System\Data\Services\HttpProcessUtility.cs (1)
36internal static readonly UTF8Encoding EncodingUtf8NoPreamble = new UTF8Encoding(false, true);
System.IdentityModel (2)
System\IdentityModel\CanonicalFormWriter.cs (1)
14internal static readonly UTF8Encoding Utf8WithoutPreamble = new UTF8Encoding(false);
System\IdentityModel\PreDigestedSignedInfo.cs (1)
244UTF8Encoding encoding = CanonicalFormWriter.Utf8WithoutPreamble;
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\CardSpaceSelector.cs (1)
367UTF8Encoding utf8 = new UTF8Encoding();
System.Runtime.Serialization (8)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (2)
30static readonly UTF8Encoding SafeUTF8 = new UTF8Encoding(false, false); 42static readonly UTF8Encoding ValidatingUTF8 = new UTF8Encoding(false, true);
System\Xml\EncodingStreamWrapper.cs (2)
21static readonly UTF8Encoding SafeUTF8 = new UTF8Encoding(false, false); 24static readonly UTF8Encoding ValidatingUTF8 = new UTF8Encoding(false, true);
System\Xml\ValueHandle.cs (1)
741UTF8Encoding encoding = new UTF8Encoding(false, true);
System\Xml\XmlConverter.cs (2)
31static UTF8Encoding utf8Encoding; 45static UTF8Encoding UTF8Encoding
System\Xml\XmlStreamNodeWriter.cs (1)
25static UTF8Encoding UTF8Encoding = new UTF8Encoding(false, true);
System.Security (11)
system\security\cryptography\xml\c14nutil.cs (8)
240UTF8Encoding utf8 = new UTF8Encoding(false); 320UTF8Encoding utf8 = new UTF8Encoding(false); 351UTF8Encoding utf8 = new UTF8Encoding(false); 379UTF8Encoding utf8 = new UTF8Encoding(false); 407UTF8Encoding utf8 = new UTF8Encoding(false); 451UTF8Encoding utf8 = new UTF8Encoding(false); 503UTF8Encoding utf8 = new UTF8Encoding(false); 572UTF8Encoding utf8 = new UTF8Encoding(false);
system\security\cryptography\xml\canonicalxml.cs (1)
106UTF8Encoding utf8 = new UTF8Encoding(false);
system\security\cryptography\xml\exccanonicalxml.cs (1)
62UTF8Encoding utf8 = new UTF8Encoding(false);
system\security\cryptography\xml\transform.cs (1)
630UTF8Encoding utf8 = new UTF8Encoding(false);
System.ServiceModel (3)
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
3578&& notFoundTestString == UTF8Encoding.ASCII.GetString(responseBytes))
System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceSchemas.cs (1)
827UTF8Encoding utf8 = new UTF8Encoding();
System\ServiceModel\Security\WSUtilitySpecificationVersion.cs (1)
180UTF8Encoding encoding = CanonicalFormWriter.Utf8WithoutPreamble;
System.ServiceModel.Web (1)
System\ServiceModel\Channels\WebScriptMetadataMessageEncoderFactory.cs (1)
36static UTF8Encoding UTF8EncodingWithoutByteOrderMark = new UTF8Encoding(false);
System.Web (1)
Security\Cryptography\CryptoUtil.cs (1)
22public static readonly UTF8Encoding SecureUTF8Encoding = new UTF8Encoding(encoderShouldEmitUTF8Identifier: false, throwOnInvalidBytes: true);
System.Web.Services (1)
System\Web\Services\Protocols\SoapServerProtocol.cs (1)
863if (!(enc is UTF8Encoding) && !(enc is UnicodeEncoding)) {
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataObject.cs (1)
1136System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
WindowsBase (4)
Base\MS\Internal\IO\Packaging\CompoundFile\UserUseLicenseDictionaryLoader.cs (1)
161private UTF8Encoding _utf8Encoding = new UTF8Encoding();
Base\MS\Internal\IO\Packaging\StorageBasedPackageProperties.cs (2)
589obj = UTF8Encoding.UTF8.GetString(byteArray); 727byte[] byteArray = UTF8Encoding.UTF8.GetBytes(inputString);
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
102if (!(reader.Encoding is UnicodeEncoding || reader.Encoding is UTF8Encoding))