357 references to UTF8
mscorlib (43)
system\appdomain.cs (1)
2836StreamWriter writer = new StreamWriter( ms, Encoding.UTF8 );
system\diagnostics\eventing\eventprovider.cs (2)
321string key = System.Text.Encoding.UTF8.GetString(data, keyIndex, keyEnd - keyIndex); 322string value = System.Text.Encoding.UTF8.GetString(data, valueIdx, valueEnd - valueIdx);
system\diagnostics\eventing\eventsource.cs (2)
466return (manifestBytes == null) ? null : Encoding.UTF8.GetString(manifestBytes, 0, manifestBytes.Length); 6305return Encoding.UTF8.GetBytes(str);
System\Diagnostics\Eventing\TraceLogging\FieldMetadata.cs (2)
116this.nameSize = Encoding.UTF8.GetByteCount(this.name) + 1; 177Encoding.UTF8.GetBytes(this.name, 0, this.name.Length, metadata, pos);
System\Diagnostics\Eventing\TraceLogging\Statics.cs (2)
89int metadataSize = Encoding.UTF8.GetByteCount(name) + 3 + prefixSize + suffixSize; 94Encoding.UTF8.GetBytes(name, 0, name.Length, metadata, 2 + prefixSize);
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventSource.cs (2)
781metaData.AddRange(Encoding.UTF8.GetBytes(value.Substring(1))); 798metaData.AddRange(Encoding.UTF8.GetBytes(value));
system\io\file.cs (4)
791return InternalReadAllText(path, Encoding.UTF8, true); 821return InternalReadAllText(path, Encoding.UTF8, false); 995return InternalReadAllLines(path, Encoding.UTF8); 1041return ReadLinesIterator.CreateIterator(path, Encoding.UTF8);
system\io\fileinfo.cs (1)
255return new StreamReader(FullPath, Encoding.UTF8, true, StreamReader.DefaultBufferSize, false);
system\io\streamreader.cs (3)
138: this(stream, Encoding.UTF8, detectEncodingFromByteOrderMarks, DefaultBufferSize, false) { 202: this(path, Encoding.UTF8, detectEncodingFromByteOrderMarks, DefaultBufferSize) { 505encoding = Encoding.UTF8;
system\reflection\emit\customattributebuilder.cs (1)
364byte[] utf8Str = Encoding.UTF8.GetBytes(str);
system\resources\resourcereader.cs (3)
167_store = new BinaryReader(new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read, DefaultFileStreamBufferSize, FileOptions.RandomAccess, Path.GetFileName(fileName), false), Encoding.UTF8); 189_store = new BinaryReader(stream, Encoding.UTF8); 209_store = new BinaryReader(stream, Encoding.UTF8);
system\resources\resourcewriter.cs (2)
290BinaryWriter bw = new BinaryWriter(_output, Encoding.UTF8); 379BinaryWriter data = new BinaryWriter(dataSection, Encoding.UTF8);
system\rttype.cs (4)
392int cUtf8Name = Encoding.UTF8.GetByteCount(pName, cNameLen); 420Encoding.UTF8.GetBytes(pName, cNameLen, pUtf8Name, cUtf8Name); 5956int cResult = Encoding.UTF8.GetCharCount(buf, m_StringHeapByteLength); 5958Encoding.UTF8.GetChars(buf, m_StringHeapByteLength, result, cResult);
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (1)
52dataWriter = new BinaryWriter(sout, Encoding.UTF8);
system\security\permissions\permissionattributes.cs (1)
1139Encoding[] encodings = new Encoding[] { Encoding.UTF8,
system\security\policy\policylevel.cs (1)
828Encoding encoding = Encoding.UTF8;
system\security\policymanager.cs (1)
302Encoding encoding = Encoding.UTF8;
system\security\util\tokenizer.cs (1)
226if (encoding == System.Text.Encoding.UTF8)
system\stubhelpers.cs (8)
156nb = strManaged.GetBytesFromEncoding(pbNativeBuffer, nb, Encoding.UTF8); 161nb = Encoding.UTF8.GetByteCount(strManaged); 164strManaged.GetBytesFromEncoding(pbNativeBuffer, nb, Encoding.UTF8); 176return String.CreateStringFromEncoding((byte*)cstr, nbBytes, Encoding.UTF8); 204int nb = Encoding.UTF8.GetByteCount(strManaged); 208nb = strManaged.GetBytesFromEncoding(pbNativeBuffer, nb, Encoding.UTF8); 221int numChar = Encoding.UTF8.GetCharCount((byte*)pNative, nbBytes); 233numChar = Encoding.UTF8.GetChars((byte*)pNative, nbBytes, pBuffer, numChar);
system\text\encoding.cs (1)
499result = UTF8;
PresentationBuildTasks (1)
BuildTasks\Microsoft\Build\Tasks\Windows\UpdateManifestForBrowserApplication.cs (1)
131manifestWriter = new XmlTextWriter(appManifestFile, System.Text.Encoding.UTF8);
PresentationFramework (2)
src\Framework\System\Windows\Controls\DataGridClipboardHelper.cs (1)
88byte[] destinationBytes = Encoding.Convert(Encoding.Unicode, Encoding.UTF8, sourceBytes);
src\Framework\System\Windows\Documents\FixedSchema.cs (1)
47!encoding.Equals(Encoding.UTF8.WebName, StringComparison.OrdinalIgnoreCase))
SMSvcHost (2)
System\ServiceModel\Activation\RoutingTable.cs (2)
150int encodedSize = System.Text.Encoding.UTF8.GetByteCount(path.BaseAddress.AbsoluteUri); 223int encodedSize = System.Text.Encoding.UTF8.GetByteCount(path.BaseAddress.AbsoluteUri);
System (37)
compmod\microsoft\csharp\csharpcodeprovider.cs (4)
676using (StreamWriter sw = new StreamWriter(temp, Encoding.UTF8)) { 3440string [] lines = ReadAllLines(outputFile, Encoding.UTF8, FileShare.ReadWrite); 3739using (StreamWriter sw = new StreamWriter(temp, Encoding.UTF8)){ 3813using (StreamWriter sw = new StreamWriter(fileStream, Encoding.UTF8)) {
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
2892string fileStr = Encoding.UTF8.GetString(fileBytes);
compmod\system\codedom\compiler\CodeCompiler.cs (4)
267using (StreamWriter sw = new StreamWriter(temp, Encoding.UTF8)){ 380StreamReader sr = new StreamReader(outputStream, Encoding.UTF8); 460using (StreamWriter sw = new StreamWriter(temp, Encoding.UTF8)) { 505using (StreamWriter sw = new StreamWriter(fileStream, Encoding.UTF8)) {
compmod\system\codedom\compiler\Executor.cs (1)
164StreamWriter sw = new StreamWriter(output, Encoding.UTF8);
net\System\IriHelper.cs (2)
231Encoding noFallbackCharUTF8 = (Encoding)Encoding.UTF8.Clone(); 355int encodedBytesCount = Encoding.UTF8.GetBytes(pInput + next, surrogatePair ? 2 : 1, pEncodedBytes, maxNumberOfBytesEncoded);
net\System\Net\_CommandStream.cs (1)
483private Encoding m_Encoding = Encoding.UTF8;
net\System\Net\_DigestClient.cs (2)
857value = Encoding.UTF8.GetString(bytes); 892byte[] bytes = charset==Charset.UTF8 ? Encoding.UTF8.GetBytes(rawString) : Encoding.Default.GetBytes(rawString);
net\System\Net\_FtpControlStream.cs (1)
293Encoding = Encoding.UTF8;
net\System\Net\_RegBlobWebProxyDataBuilder.cs (1)
164stringOut = Encoding.UTF8.GetString(m_RegistryBytes, m_ByteOffset, stringSize);
net\System\Net\mail\BufferBuilder.cs (1)
72byte[] bytes = Encoding.UTF8.GetBytes(value.ToCharArray(), offset, count);
net\System\Net\mail\MimeBasePart.cs (1)
20if (encoding == Encoding.Unicode || encoding == Encoding.UTF8 || encoding == Encoding.UTF32 || encoding == Encoding.BigEndianUnicode) {
net\System\Net\mail\SmtpLoginAuthenticationModule.cs (2)
58return new Authorization(Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(userName)), false); 65return new Authorization(Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(cachedCredential.Password)), true);
net\System\Net\mail\SmtpReplyReaderFactory.cs (2)
345builder.Append(Encoding.UTF8.GetString(byteBuffer, start, actual)); 479builder.Append(Encoding.UTF8.GetString(parent.byteBuffer, start, actual));
net\System\Net\webclient.cs (3)
632formHeaderBytes = Encoding.UTF8.GetBytes(formHeader); 1625Encoding[] encodings = { Encoding.UTF8, Encoding.UTF32, Encoding.Unicode, Encoding.BigEndianUnicode }; 1674return UrlEncode(str, Encoding.UTF8);
net\System\Net\WebHeaderCollection.cs (1)
2106m_Bytes = Encoding.UTF8.GetBytes(m_String);
net\System\Net\WebSockets\WebSocketBase.cs (1)
2169byte[] blob = UTF8Encoding.UTF8.GetBytes(CloseReason);
net\System\Net\WebSockets\WebSocketBuffer.cs (1)
438reason = Encoding.UTF8.GetString(reasonBlob.Array, reasonBlob.Offset, reasonBlob.Count);
net\System\Net\WebSockets\WebSocketHelpers.cs (2)
206byte[] toHash = Encoding.UTF8.GetBytes(acceptString); 438length = UTF8Encoding.UTF8.GetByteCount(statusDescription);
net\System\Net\WebUtility.cs (3)
471byte[] bytes = Encoding.UTF8.GetBytes(value); 472return Encoding.UTF8.GetString(UrlEncode(bytes, 0, bytes.Length, false /* alwaysCreateNewReturnValue */)); 590return UrlDecodeInternal(encodedValue, Encoding.UTF8);
net\System\UriHelper.cs (3)
165short numberOfBytes = (short)Encoding.UTF8.GetBytes(pStr+i, count, bytes, 474Encoding noFallbackCharUTF8 = (Encoding)Encoding.UTF8.Clone(); 516byte[] encodedBytes = Encoding.UTF8.GetBytes(unescapedChars, j, isHighSurr ? 2 : 1);
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
578using (StreamWriter fileStreamWriter = new StreamWriter(fileName, false, Encoding.UTF8))
System.Configuration (1)
System\Configuration\BaseConfigurationRecord.cs (1)
4468_encoding = Encoding.UTF8;
System.Core (1)
System\Security\Cryptography\Xml\ManifestSignedXml.cs (1)
493byte[] licenseXml = Encoding.UTF8.GetBytes(licenseNode.OuterXml);
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
578using (StreamWriter fileStreamWriter = new StreamWriter(fileName, false, Encoding.UTF8))
System.Data.Entity (2)
System\Data\Common\CommandTrees\Internal\XmlExpressionDumper.cs (1)
27internal static Encoding DefaultEncoding { get { return Encoding.UTF8; } }
System\Data\Query\InternalTrees\Dump.cs (1)
58internal static readonly Encoding DefaultEncoding = Encoding.UTF8;
System.Data.Entity.Design (1)
System\Data\Entity\Design\EntityDesignerUtils.cs (1)
127settings.Encoding = Encoding.UTF8;
System.Data.Services (2)
parent\Client\System\Data\Services\Client\BatchStream.cs (1)
1062return Encoding.UTF8;
System\Data\Services\Parsing\WebConvert.cs (1)
363string keyValue = Encoding.UTF8.GetString(byteArrayValue);
System.Data.Services.Client (3)
System\Data\Services\Client\BatchStream.cs (1)
1062return Encoding.UTF8;
System\Data\Services\Client\DataServiceContext.cs (2)
4678encoding = Encoding.UTF8; 5273Encoding encoding = Encoding.UTF8;
System.Data.SqlXml (2)
System\Xml\Xsl\XsltOld\SequentialOutput.cs (1)
540this.utf8Encoding = Encoding.UTF8;
System\Xml\Xsl\XsltOld\XsltOutput.cs (1)
29private Encoding encoding = System.Text.Encoding.UTF8;
System.IdentityModel (31)
System\IdentityModel\Configuration\ConfigurationElementInterceptor.cs (1)
19using ( XmlReader newReader = XmlDictionaryReader.CreateTextReader( Encoding.UTF8.GetBytes( elementXml.DocumentElement.OuterXml ), XmlDictionaryReaderQuotas.Max ) )
System\IdentityModel\Diagnostics\DigestTraceRecordHelper.cs (1)
66string contentAsString = System.Text.Encoding.UTF8.GetString(contentBuffer, 0, (int)_logStream.Length);
System\IdentityModel\EnvelopedSignatureWriter.cs (2)
87XmlDictionaryWriter effectiveWriter = XmlDictionaryWriter.CreateTextWriter(_writerStream, Encoding.UTF8, false); 102base.InitializeTracingWriter(new XmlTextWriter(_preCanonicalTracingStream, Encoding.UTF8));
System\IdentityModel\Metadata\MetadataSerializer.cs (1)
2605using (XmlDictionaryWriter writer = XmlDictionaryWriter.CreateTextWriter(stream, Encoding.UTF8, false))
System\IdentityModel\ProtectedDataCookieTransform.cs (1)
29this.entropy = Encoding.UTF8.GetBytes( entropyString );
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (2)
2809using (XmlWriter writer = XmlDictionaryWriter.CreateTextWriter(ms, Encoding.UTF8, false)) 2822XmlDictionaryReader memoryReader = XmlDictionaryReader.CreateTextReader(ms, Encoding.UTF8, XmlDictionaryReaderQuotas.Max, null);
System\IdentityModel\RsaEncryptionCookieTransform.cs (2)
207byte[] hashedKey = hash.ComputeHash(Encoding.UTF8.GetBytes(key.ToXmlString(false))); 286rsaHash = hash.ComputeHash(Encoding.UTF8.GetBytes(encryptionKey.ToXmlString(false)));
System\IdentityModel\SignatureResourcePool.cs (2)
118this.utf8Writer = XmlDictionaryWriter.CreateTextWriter(Stream.Null, Encoding.UTF8, false); 122((IXmlTextWriterInitializer) this.utf8Writer).SetOutput(Stream.Null, Encoding.UTF8, false);
System\IdentityModel\SignedXml.cs (3)
879using (XmlDictionaryWriter utf8Writer = XmlDictionaryWriter.CreateTextWriter(Stream.Null, Encoding.UTF8, false)) 900using (XmlDictionaryWriter bufferingWriter = XmlDictionaryWriter.CreateTextWriter(Stream.Null, Encoding.UTF8, false)) 931settings.Encoding = Encoding.UTF8;
System\IdentityModel\Tokens\BootstrapContext.cs (3)
52_tokenString = Text.Encoding.UTF8.GetString(Convert.FromBase64String(info.GetString(_tokenKey))); 63_tokenString = Text.Encoding.UTF8.GetString(Convert.FromBase64String(info.GetString(_tokenKey))); 163using (XmlDictionaryWriter writer = XmlDictionaryWriter.CreateTextWriter(ms, Text.Encoding.UTF8, false))
System\IdentityModel\Tokens\EncryptedSecurityTokenHandler.cs (3)
207DebugEncryptedTokenClearText(plainText, Encoding.UTF8); 316using (XmlDictionaryWriter plaintextWriter = XmlDictionaryWriter.CreateTextWriter(plaintextStream, Encoding.UTF8, false)) 352DebugEncryptedTokenClearText(plainTextBytes, Encoding.UTF8);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (6)
1250using (XmlDictionaryWriter dicWriter = XmlDictionaryWriter.CreateTextWriter(ms, Encoding.UTF8, false)) 1274return Encoding.UTF8.GetString(ms.ToArray()); 1685key = Convert.ToBase64String(hashAlgorithm.ComputeHash(Encoding.UTF8.GetBytes(stringBuilder.ToString()))); 1896using (XmlDictionaryReader dicReader = XmlDictionaryReader.CreateTextReader(Encoding.UTF8.GetBytes(attributeValue), XmlDictionaryReaderQuotas.Max)) 2824writer = plaintextWriter = XmlDictionaryWriter.CreateTextWriter(plaintextStream, Encoding.UTF8, false); 4537using (XmlWriter plaintextWriter = XmlDictionaryWriter.CreateTextWriter(plaintextStream, Encoding.UTF8, false))
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (4)
630using (XmlDictionaryWriter dicWriter = XmlDictionaryWriter.CreateTextWriter(ms, Encoding.UTF8, false)) 652return Encoding.UTF8.GetString(ms.ToArray()); 825key = Convert.ToBase64String(hashAlgorithm.ComputeHash(Encoding.UTF8.GetBytes(stringBuilder.ToString()))); 1446using (XmlDictionaryReader xmlReader = XmlDictionaryReader.CreateTextReader(Encoding.UTF8.GetBytes(attributeValue), XmlDictionaryReaderQuotas.Max))
System.Management (1)
WmiGenerator.cs (1)
215tw = new StreamWriter(new FileStream (filePath,FileMode.Create),System.Text.Encoding.UTF8);
System.Runtime.Remoting (7)
channels\http\httpchannelhelper.cs (3)
316byte[] uriBytes = Encoding.UTF8.GetBytes(uri); 357byte[] uriBytes = Encoding.UTF8.GetBytes(uri); 362String newUri = Encoding.UTF8.GetString(uriBytes, 0, length);
channels\http\httpremotinghandler.cs (1)
298context.Response.ContentType = ComposeContentType("text/plain", Encoding.UTF8);
channels\http\httpstreams.cs (1)
732requestURI = Encoding.UTF8.GetString(requestUriBytes, 0, decodedUriLength);
channels\tcp\tcpsocketmanager.cs (2)
310return Encoding.UTF8.GetString(data); 335byte[] strBytes = Encoding.UTF8.GetBytes(str);
System.Runtime.Serialization (39)
System\Runtime\Serialization\DataContract.cs (1)
1939byte[] namespaceBytes = Encoding.UTF8.GetBytes(namespaces);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
280XmlDictionaryWriter jsonWriter = JsonReaderWriterFactory.CreateJsonWriter(stream, Encoding.UTF8, false); // ownsStream
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
228byteCount = Encoding.UTF8.GetBytes(chars, 0, charCount, bytes, 0);
System\Runtime\Serialization\Json\JsonReaderWriterFactory.cs (1)
57return CreateJsonWriter(stream, Encoding.UTF8, true);
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (1)
26MemoryStream memoryStream = new MemoryStream(Encoding.UTF8.GetBytes(xmlContent));
System\Runtime\Serialization\Json\XmlJsonReader.cs (8)
607XmlExceptionHelper.ThrowTokenExpected(this, "false", Encoding.UTF8.GetString(buffer, offset, 5)); 615XmlExceptionHelper.ThrowTokenExpected(this, "false", Encoding.UTF8.GetString(buffer, offset, 4) + (char)ch); 628XmlExceptionHelper.ThrowTokenExpected(this, "true", Encoding.UTF8.GetString(buffer, offset, 4)); 636XmlExceptionHelper.ThrowTokenExpected(this, "true", Encoding.UTF8.GetString(buffer, offset, 4) + (char)ch); 649XmlExceptionHelper.ThrowTokenExpected(this, "null", Encoding.UTF8.GetString(buffer, offset, 4)); 662XmlExceptionHelper.ThrowTokenExpected(this, "null", Encoding.UTF8.GetString(buffer, offset, 4) + (char)ch); 1276string bufferAsString = Encoding.UTF8.GetString(buffer, offset, 4); 1287bufferAsString = Encoding.UTF8.GetString(buffer, offset, 4);
System\Runtime\Serialization\Json\XmlJsonWriter.cs (1)
312if (encoding.WebName != Encoding.UTF8.WebName)
System\Runtime\Serialization\XmlObjectSerializer.cs (1)
28XmlDictionaryWriter writer = XmlDictionaryWriter.CreateTextWriter(stream, Encoding.UTF8, false /*ownsStream*/);
System\Xml\EncodingStreamWrapper.cs (1)
639byteCount = Encoding.UTF8.GetBytes(chars, 0, charCount, bytes, 0);
System\Xml\XmlBaseWriter.cs (1)
1594textFragmentWriter.SetOutput(stream, false, Encoding.UTF8);
System\Xml\XmlC14NWriter.cs (7)
194element.prefixLength = Encoding.UTF8.GetByteCount(prefix); 196element.localNameLength = Encoding.UTF8.GetByteCount(localName); 271if (String.Compare(Encoding.UTF8.GetString(xmlnsBuffer, xmlnsAttribute.prefixOffset, xmlnsAttribute.prefixLength), this.inclusivePrefixes[i], StringComparison.Ordinal) == 0) 387xmlnsAttribute.prefixLength = Encoding.UTF8.GetBytes(prefix, 0, prefix.Length, xmlnsBuffer, xmlnsOffset); 390xmlnsAttribute.nsLength = Encoding.UTF8.GetBytes(ns, 0, ns.Length, xmlnsBuffer, xmlnsOffset); 446attribute.prefixLength = Encoding.UTF8.GetByteCount(prefix); 448attribute.localNameLength = Encoding.UTF8.GetByteCount(localName);
System\Xml\XmlDictionaryString.cs (1)
78buffer = System.Text.Encoding.UTF8.GetBytes(value);
System\Xml\XmlDictionaryWriter.cs (1)
73return CreateTextWriter(stream, Encoding.UTF8, true);
System\Xml\XmlMtomWriter.cs (1)
180if (String.Compare(name, Encoding.UTF8.WebName, StringComparison.OrdinalIgnoreCase) == 0)
System\Xml\XmlNodeWriter.cs (8)
56WriteStartElement(Encoding.UTF8.GetString(prefixBuffer, prefixOffset, prefixLength), Encoding.UTF8.GetString(localNameBuffer, localNameOffset, localNameLength)); 63WriteEndElement(Encoding.UTF8.GetString(prefixBuffer, prefixOffset, prefixLength), Encoding.UTF8.GetString(localNameBuffer, localNameOffset, localNameLength)); 68WriteXmlnsAttribute(Encoding.UTF8.GetString(prefixBuffer, prefixOffset, prefixLength), Encoding.UTF8.GetString(nsBuffer, nsOffset, nsLength)); 74WriteStartAttribute(Encoding.UTF8.GetString(prefixBuffer, prefixOffset, prefixLength), Encoding.UTF8.GetString(localNameBuffer, localNameOffset, localNameLength));
System\Xml\XmlUTF8TextReader.cs (2)
407XmlExceptionHelper.ThrowTokenExpected(this, "?>", Encoding.UTF8.GetString(buffer, offset, 2)); 818XmlExceptionHelper.ThrowTokenExpected(this, "[CDATA[", Encoding.UTF8.GetString(buffer, offset, 7));
System\Xml\XmlUTF8TextWriter.cs (2)
35if (encoding.WebName != Encoding.UTF8.WebName) 128if (encoding != null && encoding.CodePage == Encoding.UTF8.CodePage)
System.Security (2)
system\security\cryptography\xml\encryptedxml.cs (1)
124m_encoding = Encoding.UTF8;
system\security\cryptography\xml\SignedXmlDebugLog.cs (1)
566Encoding.UTF8.GetString(ms.ToArray()));
System.ServiceModel (37)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (5)
487int utf8ValueSize = Encoding.UTF8.GetByteCount(newStrings[i].Value); 518int utf8ValueSize = Encoding.UTF8.GetByteCount(newString); 520offset += Encoding.UTF8.GetBytes(newString, 0, newString.Length, buffer, offset); 592string value = Encoding.UTF8.GetString(buffer, offset, utf8ValueSize); 1022int bytesRequired = Encoding.UTF8.GetByteCount(s.Value);
System\ServiceModel\Channels\ConnectionOrientedTransportChannelListener.cs (1)
350int encodedSize = Encoding.UTF8.GetByteCount(uri.AbsoluteUri);
System\ServiceModel\Channels\FramingDecoders.cs (1)
159value = Encoding.UTF8.GetString(encodedBytes, 0, encodedSize);
System\ServiceModel\Channels\FramingEncoders.cs (2)
55int valueByteCount = Encoding.UTF8.GetByteCount(value); 61Encoding.UTF8.GetBytes(value, 0, value.Length, encodedBytes, offset);
System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
325action = UrlUtility.UrlDecode(action, Encoding.UTF8); 3746return System.Text.Encoding.UTF8.GetString(responseBuffer, 0, bytesRead);
System\ServiceModel\Channels\PeerNodeImplementation.cs (1)
1675int viaSize = Encoding.UTF8.GetByteCount(uri.OriginalString);
System\ServiceModel\Channels\PipeConnection.cs (1)
2806byte[] canonicalBytes = Encoding.UTF8.GetBytes(canonicalName);
System\ServiceModel\Channels\PnrpPeerResolver.cs (1)
86return System.Text.Encoding.UTF8;
System\ServiceModel\Channels\TransportDefaults.cs (2)
58internal static readonly Encoding[] SupportedEncodings = new Encoding[] { Encoding.UTF8, Encoding.Unicode, Encoding.BigEndianUnicode }; 62new CharSetEncoding("utf-8", Encoding.UTF8),
System\ServiceModel\Channels\WebSocketHelper.cs (1)
55byte[] bytes = Encoding.UTF8.GetBytes(fullString);
System\ServiceModel\ComIntegration\ComIntegrationManifestGenerator.cs (1)
174byte[] bytes = System.Text.Encoding.UTF8.GetBytes(value);
System\ServiceModel\Configuration\IssuedTokenParametersElement.cs (1)
293using (XmlTextWriter commentWriter = new XmlTextWriter(memoryStream, Encoding.UTF8))
System\ServiceModel\Diagnostics\MessageLogTraceRecord.cs (1)
56this.messageString = System.Text.Encoding.UTF8.GetString(buffer.Array, buffer.Offset, buffer.Count);
System\ServiceModel\Security\InfoCardHelper.cs (1)
799using (XmlWriter writer = new XmlTextWriter(buffer, Encoding.UTF8))
System\ServiceModel\Security\SecurityUtils.cs (1)
548combinedHashLabel = Encoding.UTF8.GetBytes(TrustApr2004Strings.CombinedHashLabel);
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (1)
261(this.label != null ? Encoding.UTF8.GetBytes(this.label) : DefaultLabel), this.nonce, this.length * 8,
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (1)
452using (XmlDictionaryWriter xmlWriter = XmlDictionaryWriter.CreateTextWriter(stream, Encoding.UTF8, false))
System\ServiceModel\Security\WSSecurityPolicy.cs (2)
2293writer = new XmlTextWriter(stream, System.Text.Encoding.UTF8); 2307writer = new XmlTextWriter(stream, System.Text.Encoding.UTF8);
System\ServiceModel\Security\WSTrust.cs (1)
1413using (XmlDictionaryWriter writer = XmlDictionaryWriter.CreateDictionaryWriter(new XmlTextWriter(stream, Encoding.UTF8)))
System\ServiceModel\Transactions\WsatProxy.cs (1)
431byte[] descriptionBytes = Encoding.UTF8.GetBytes(description);
System\UriTemplate.cs (3)
193key = UrlUtility.UrlDecode(key, Encoding.UTF8); 720string escapedValue = (string.IsNullOrEmpty(value) ? string.Empty : UrlUtility.UrlEncode(value, Encoding.UTF8)); 721query.AppendFormat("&{0}={1}", UrlUtility.UrlEncode(key, Encoding.UTF8), escapedValue);
System\UriTemplateLiteralQueryValue.cs (3)
26return new UriTemplateLiteralQueryValue(UrlUtility.UrlDecode(value, Encoding.UTF8)); 31return UrlUtility.UrlEncode(this.value, Encoding.UTF8); 39query.AppendFormat("&{0}={1}", UrlUtility.UrlEncode(keyName, Encoding.UTF8), AsEscapedString());
System\UriTemplateQueryValue.cs (1)
91query.AppendFormat("&{0}", UrlUtility.UrlEncode(keyName, Encoding.UTF8));
System\UriTemplateVariableQueryValue.cs (2)
31query.AppendFormat("&{0}={1}", UrlUtility.UrlEncode(keyName, Encoding.UTF8), UrlUtility.UrlEncode(values[valueIndex++], Encoding.UTF8));
System.ServiceModel.Internals (4)
System\Runtime\UrlUtility.cs (4)
18return ParseQueryString(query, Encoding.UTF8); 47return UrlEncode(str, Encoding.UTF8); 66return UrlEncodeSpaces(UrlEncodeNonAscii(str, Encoding.UTF8)); 134e = Encoding.UTF8;
System.ServiceModel.Web (9)
System\ServiceModel\Channels\WebScriptMetadataMessageEncoderFactory.cs (1)
47this.innerReadMessageEncoder = new TextMessageEncodingBindingElement(MessageVersion.None, Encoding.UTF8).CreateMessageEncoderFactory().Encoder;
System\ServiceModel\Configuration\WebEncodingValidator.cs (1)
24((encoding.WebName != Encoding.UTF8.WebName) &&
System\ServiceModel\Dispatcher\JsonQueryStringConverter.cs (4)
171XmlDictionaryWriter jsonWriter = JsonReaderWriterFactory.CreateJsonWriter(memoryStream, Encoding.UTF8); 175return Encoding.UTF8.GetString(memoryStream.GetBuffer(), (int) memoryStream.Position, (int) memoryStream.Length); 180byte[] byteArray = Encoding.UTF8.GetBytes(parameter); 182(byteArray, 0, byteArray.Length, Encoding.UTF8, XmlDictionaryReaderQuotas.Max, null);
System\ServiceModel\Web\WebOperationContext.cs (3)
214return CreateTextResponse(text, WebOperationContext.DefaultTextMediaType, Encoding.UTF8); 219return CreateTextResponse(text, contentType, Encoding.UTF8); 258encoding = Encoding.UTF8;
System.Web (63)
Compilation\AssemblyBuilder.cs (2)
242return new StreamWriter(temp, Encoding.UTF8); 1299return new StreamWriter(temp, Encoding.UTF8);
Compilation\BuildManager.cs (1)
2626using (StreamWriter writer = new StreamWriter(precompMarkerFile, false /*append*/, Encoding.UTF8)) {
Compilation\BuildResultCache.cs (1)
758using (var writer = new StreamWriter(hashFilePath, false, Encoding.UTF8)) {
Compilation\PreservationFileWriter.cs (1)
37_writer = new XmlTextWriter(preservationFile, Encoding.UTF8);
Configuration\GlobalizationSection.cs (9)
42new ConfigurationProperty("requestEncoding", typeof(string), Encoding.UTF8.WebName, ConfigurationPropertyOptions.None); 44new ConfigurationProperty("responseEncoding", typeof(string), Encoding.UTF8.WebName, ConfigurationPropertyOptions.None); 54new ConfigurationProperty("responseHeaderEncoding", typeof(string), Encoding.UTF8.WebName, ConfigurationPropertyOptions.None); 96requestEncodingCache = Encoding.UTF8; 107requestEncodingCache = Encoding.UTF8; 116responseEncodingCache = Encoding.UTF8; 126responseEncodingCache = Encoding.UTF8; 135responseHeaderEncodingCache = Encoding.UTF8; 146responseHeaderEncodingCache = Encoding.UTF8;
Configuration\HttpRuntimeSection.cs (2)
842string[] stringsDecoded = HttpUtility.UrlDecode(invalidCharString, Encoding.UTF8).Split(','); 866string decodedString = HttpUtility.UrlDecode(stringsToDecode[iter], Encoding.UTF8).Trim();
ErrorFormatter.cs (1)
1870get { return Encoding.UTF8; }
Hosting\ApplicationManager.cs (1)
1458StreamReader reader = new StreamReader(file, Encoding.UTF8);
Hosting\IIS7WorkerRequest.cs (1)
46private Encoding _headerEncoding = Encoding.UTF8;
Hosting\ISAPIWorkerRequest.cs (5)
93s_ByteBufferAllocator = new UbyteBufferAllocator(Encoding.UTF8.GetMaxByteCount(BUFFER_SIZE), MAX_FREE_BUFFERS); 152return GetEncodedBytesBuffer(Encoding.UTF8); 160encoding = Encoding.UTF8; 1852value = buf.GetDecodedString(Encoding.UTF8, retVal); 1884_additionalServerVars[i] = buf.GetDecodedString(Encoding.UTF8, retVal);
HttpCachePolicy.cs (1)
746_etag = Convert.ToBase64String(CryptoUtil.ComputeSHA256Hash(Encoding.UTF8.GetBytes(sb.ToString())));
HttpDebugHandler.cs (1)
209HttpValueCollection valCol = new HttpValueCollection(s, true, true, Encoding.UTF8);
HttpRequest.cs (1)
1350return e.Equals(Encoding.Unicode) ? Encoding.UTF8 : e;
HttpResponse.cs (4)
1742_headerEncoding = Encoding.UTF8; 1775if (!e.Equals(Encoding.UTF8)) { 3329return schemeAndAuthority + HttpEncoderUtility.UrlEncodeSpaces(HttpUtility.UrlEncodeNonAscii(path, Encoding.UTF8)) + queryAndFragment; 3333return HttpEncoderUtility.UrlEncodeSpaces(HttpUtility.UrlEncodeNonAscii(url, Encoding.UTF8));
HttpRuntime.cs (1)
3244StreamReader reader = new StreamReader(file, Encoding.UTF8);
httpserverutility.cs (7)
985Encoding e = (_context != null) ? _context.Response.ContentEncoding : Encoding.UTF8; 1019Encoding e = (_context != null) ? _context.Request.ContentEncoding : Encoding.UTF8; 1277return ParseQueryString(query, Encoding.UTF8); 1313return UrlEncode(str, Encoding.UTF8); 1380return UrlEncodeToBytes(str, Encoding.UTF8); 1439return UrlDecode(str, Encoding.UTF8); 1475return UrlDecodeToBytes(str, Encoding.UTF8);
Security\AnonymousIdentificationModule.cs (3)
329s_Modifier = Encoding.UTF8.GetBytes("AnonymousIdentification"); 343byte [] bufId = Encoding.UTF8.GetBytes(data.AnonymousId); 370string id = Encoding.UTF8.GetString(bBlob, 12, len);
Security\AntiXss\AntiXssEncoder.cs (8)
41string utf8String = Encoding.UTF8.GetString(bytes, offset, count); 42string result = UrlEncode(utf8String, Encoding.UTF8); 43return Encoding.UTF8.GetBytes(result); 64return schemeAndAuthority + HtmlParameterEncoder.UrlPathEncode(path, Encoding.UTF8) + queryAndFragment; 91return UrlEncode(input, Encoding.UTF8); 97return HtmlFormUrlEncode(input, Encoding.UTF8); 117inputEncoding = Encoding.UTF8; 128inputEncoding = Encoding.UTF8;
Security\FormsAuthentication.cs (1)
76return CryptoUtil.BinaryToHex(hashAlgorithm.ComputeHash(Encoding.UTF8.GetBytes(password)));
State\OutOfProcStateClientManager.cs (1)
108string idHash = Convert.ToBase64String(CryptoUtil.ComputeSHA256Hash(Encoding.UTF8.GetBytes(appId)));
StringResourceManager.cs (3)
28return new String((sbyte *)pv, offset, size, Encoding.UTF8); 100size = Encoding.UTF8.GetByteCount(s); 118Encoding encoding = Encoding.UTF8;
UI\HTMLTextWriter.cs (1)
1308Write(HttpUtility.UrlEncodeNonAscii(Char.ToString(ch), Encoding.UTF8));
UI\Page.cs (2)
1863return Encoding.UTF8.GetString(clearData); 2009byte[] clearData = Encoding.UTF8.GetBytes(s);
UI\PageThemeParser.cs (1)
146ParseString(Text, CurrentVirtualPath, Encoding.UTF8);
UI\TemplateParser.cs (1)
704ParseString(_text, CurrentVirtualPath, Encoding.UTF8);
Util\HttpEncoder.cs (2)
677e = Encoding.UTF8; 801return HttpEncoderUtility.UrlEncodeSpaces(UrlEncodeNonAscii(value, Encoding.UTF8));
WebSockets\AspNetWebSocket.cs (1)
505int byteCount = Encoding.UTF8.GetByteCount(statusDescription);
System.Web.DataVisualization (2)
WebForm\General\ChartHttpHandler.cs (2)
204byte[] data = System.Text.Encoding.UTF8.GetBytes("chart io controller file"); 1469byte[] data = Encoding.UTF8.GetBytes(sessionID + "/" + currentGuid);
System.Web.Extensions (4)
ClientServices\Providers\ProxyHelper.cs (2)
134return Encoding.UTF8.GetBytes(sb.ToString()); 142using (StreamReader readStream = new StreamReader(s, Encoding.UTF8)) {
Handlers\ScriptResourceHandler.cs (1)
519using (StreamWriter writer = new StreamWriter(outputStream, Encoding.UTF8)) {
Script\Services\ServicesUtilities.cs (1)
116using (XmlTextWriter writer = new XmlTextWriter(ms, Encoding.UTF8)) {
System.Web.Mobile (1)
UI\MobileControls\Adapters\EmptyTextWriter.cs (1)
330return Encoding.UTF8;
System.Web.Services (11)
System\Web\Services\Discovery\DiscoveryRequestHandler.cs (1)
108context.Response.ContentType = ContentType.Compose("text/xml", Encoding.UTF8);
System\Web\Services\Protocols\DiscoveryServerProtocol.cs (1)
341Response.ContentType = ContentType.Compose("text/plain", Encoding.UTF8);
System\Web\Services\Protocols\HttpServerProtocol.cs (2)
167string utf8MethodName = Encoding.UTF8.GetString(Encoding.Default.GetBytes(methodName)); 222Response.ContentType = ContentType.Compose("text/plain", Encoding.UTF8);
System\Web\Services\Protocols\LogicalMethodInfo.cs (1)
558byte[] bytes = HashAlgorithm.ComputeHash(Encoding.UTF8.GetBytes(key));
System\Web\Services\Protocols\SoapClientProtocol.cs (3)
518string soapAction = UrlEncoder.EscapeString(method.action, Encoding.UTF8); 521message.ContentType = ContentType.Compose(ContentType.ApplicationSoap, RequestEncoding != null ? RequestEncoding : Encoding.UTF8, soapAction); 523message.ContentType = ContentType.Compose(ContentType.TextXml, RequestEncoding != null ? RequestEncoding : Encoding.UTF8);
System\Web\Services\Protocols\SoapServerProtocol.cs (3)
677message.ContentType = ContentType.Compose(helper.HttpContentType, Encoding.UTF8); 765message.ContentType = ContentType.Compose(helper.HttpContentType, Encoding.UTF8); 814Response.ContentType = ContentType.Compose(ContentType.TextPlain, Encoding.UTF8);
System.Windows.Forms (16)
parent\parent\parent\public\Internal\NDP\Inc\mansign.cs (5)
521byte[] licenseXml = Encoding.UTF8.GetBytes(licenseNode.OuterXml); 718byte[] modulus = Encoding.UTF8.GetBytes(snModulus.InnerXml); 719byte[] exponent = Encoding.UTF8.GetBytes(snExponent.InnerXml); 1028byte[] licenseXml = Encoding.UTF8.GetBytes(licenseDom.OuterXml); 1049asTimestamp.InnerText = Encoding.UTF8.GetString(timestampSignature);
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (5)
266byte[] licenseXml = Encoding.UTF8.GetBytes(licenseNode.OuterXml); 1344byte[] modulus = Encoding.UTF8.GetBytes(snModulus.InnerXml); 1345byte[] exponent = Encoding.UTF8.GetBytes(snExponent.InnerXml); 1856byte[] licenseXml = Encoding.UTF8.GetBytes(licenseDom.OuterXml); 1878timestamp = Encoding.UTF8.GetString(timestampSignature);
winforms\Managed\System\Resources\ResXResourceWriter.cs (2)
311xmlTextWriter = new XmlTextWriter(stream, System.Text.Encoding.UTF8); 315xmlTextWriter = new XmlTextWriter(fileName, System.Text.Encoding.UTF8);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
8217byte[] destinationBytes = Encoding.Convert(Encoding.Unicode, Encoding.UTF8, sourceBytes); 8228destinationBytes = Encoding.Convert(Encoding.Unicode, Encoding.UTF8, sourceBytes);
winforms\Managed\System\WinForms\DataObject.cs (1)
1899stringData = Encoding.UTF8.GetString(bytes);
winforms\Managed\System\WinForms\WebBrowser.cs (1)
350StreamWriter sw = new StreamWriter(ms, Encoding.UTF8 );
System.Workflow.ComponentModel (2)
AuthoringOM\Compiler\CompileXomlTask.cs (1)
630using (StreamWriter fileStream = new StreamWriter(new FileStream(tempFile, FileMode.Create, FileAccess.Write), Encoding.UTF8))
AuthoringOM\Compiler\XomlCompilerHelpers.cs (1)
711using (StreamWriter sw = new StreamWriter(temp, Encoding.UTF8))
System.WorkflowServices (1)
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (1)
523string xml = UnicodeEncoding.UTF8.GetString(memStr.ToArray());
System.Xml (3)
System\Xml\Core\XmlTextReaderImpl.cs (1)
2942ps.encoding = Encoding.UTF8;
System\Xml\Core\XmlWriterSettings.cs (2)
498Debug.Assert(Encoding.UTF8.WebName == "utf-8"); 674encoding = Encoding.UTF8;
WindowsBase (24)
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (14)
143BinaryReader utf8Reader = new BinaryReader(_publishLicenseStream, Encoding.UTF8); 192Encoding.UTF8, 252BinaryWriter utf8Writer = new BinaryWriter(_publishLicenseStream, Encoding.UTF8); 286WriteByteLengthPrefixedDwordPaddedString(publishLicense.ToString(), utf8Writer, Encoding.UTF8); 760string base64UserName = ReadLengthPrefixedString(utf8Reader, Encoding.UTF8, UserNameLengthMax); 783ReadLengthPrefixedString(utf8Reader, Encoding.UTF8, UseLicenseLengthMax) 826using (BinaryReader utf8Reader = new BinaryReader(stream, Encoding.UTF8)) 879using (BinaryReader utf8Reader = new BinaryReader(stream, Encoding.UTF8)) 922using (BinaryWriter utf8Writer = new BinaryWriter(licenseStream, Encoding.UTF8)) 940byte [] utf8Bytes = Encoding.UTF8.GetBytes(base64UserName); 963WriteByteLengthPrefixedDwordPaddedString(useLicense.ToString(), utf8Writer, Encoding.UTF8); 1214ReadLengthPrefixedString(utf8Reader, Encoding.UTF8, UserNameLengthMax); 1217ReadLengthPrefixedString(utf8Reader, Encoding.UTF8, UseLicenseLengthMax) 1246string base64UserName = ReadLengthPrefixedString(utf8Reader, Encoding.UTF8, UserNameLengthMax);
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (2)
520using (XmlTextWriter writer = new XmlTextWriter(s, System.Text.Encoding.UTF8)) 782_streamingXmlWriter = new XmlTextWriter(s, System.Text.Encoding.UTF8);
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (1)
776_xmlWriter = new XmlTextWriter(writerStream, System.Text.Encoding.UTF8);
Base\MS\Internal\IO\Packaging\StorageBasedPackageProperties.cs (2)
589obj = UTF8Encoding.UTF8.GetString(byteArray); 727byte[] byteArray = UTF8Encoding.UTF8.GetBytes(inputString);
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (2)
547System.Text.Encoding.UTF8)) 1001using (XmlTextWriter xWriter = new XmlTextWriter(s, System.Text.Encoding.UTF8))
Base\System\IO\Packaging\ZipPackage.cs (2)
1047using (XmlTextWriter writer = new XmlTextWriter(s, System.Text.Encoding.UTF8)) 1501_streamingXmlWriter = new XmlTextWriter(s, System.Text.Encoding.UTF8);
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
861private static readonly string _webNameUTF8 = Encoding.UTF8.WebName.ToUpperInvariant();
WsatConfig (1)
CommandLine\ConsoleEntryPoint.cs (1)
258if ((System.Console.OutputEncoding.CodePage != Encoding.UTF8.CodePage) &&