9 types derived from Encoding
mscorlib (6)
system\text\asciiencoding.cs (1)
26public class ASCIIEncoding : Encoding
system\text\encodingnls.cs (1)
33internal abstract class EncodingNLS : Encoding
system\text\unicodeencoding.cs (1)
21public class UnicodeEncoding : Encoding
system\text\utf32encoding.cs (1)
27public sealed class UTF32Encoding : Encoding
system\text\utf7encoding.cs (1)
20public class UTF7Encoding : Encoding
system\text\utf8encoding.cs (1)
41public class UTF8Encoding : Encoding
System.Runtime.Serialization (2)
System\Text\Base64Encoding.cs (1)
11class Base64Encoding : Encoding
System\Text\BinHexEncoding.cs (1)
11class BinHexEncoding : Encoding
System.Xml (1)
System\Xml\XmlEncoding.cs (1)
179internal class Ucs4Encoding : Encoding {
1591 references to Encoding
mscorlib (279)
system\appdomain.cs (1)
2836StreamWriter writer = new StreamWriter( ms, Encoding.UTF8 );
system\console.cs (13)
97private static volatile Encoding _inputEncoding = null; 98private static volatile Encoding _outputEncoding = null; 288Encoding enc = InputEncoding; 370Encoding encoding = OutputEncoding; 439private static bool IsStandardConsoleUnicodeEncoding(Encoding encoding) { 541public static Encoding InputEncoding { 545Contract.Ensures(Contract.Result<Encoding>() != null); 556_inputEncoding = Encoding.GetEncoding((int) cp); 583_inputEncoding = (Encoding) value.Clone(); 594public static Encoding OutputEncoding { 598Contract.Ensures(Contract.Result<Encoding>() != null); 609_outputEncoding = Encoding.GetEncoding((int) cp); 646_outputEncoding = (Encoding) value.Clone();
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 (3)
466return (manifestBytes == null) ? null : Encoding.UTF8.GetString(manifestBytes, 0, manifestBytes.Length); 1751byte[] bytes = Encoding.BigEndianUnicode.GetBytes(name); 6305return Encoding.UTF8.GetBytes(str);
System\Diagnostics\Eventing\TraceLogging\FieldMetadata.cs (3)
2using Encoding = System.Text.Encoding; 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 (3)
5using Encoding = System.Text.Encoding; 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\diagnostics\log.cs (1)
13using Encoding = System.Text.Encoding;
system\io\binaryreader.cs (2)
48public BinaryReader(Stream input, Encoding encoding) : this(input, encoding, false) { 51public BinaryReader(Stream input, Encoding encoding, bool leaveOpen) {
system\io\binarywriter.cs (3)
37private Encoding _encoding; 71public BinaryWriter(Stream output, Encoding encoding) : this(output, encoding, false) 75public BinaryWriter(Stream output, Encoding encoding, bool leaveOpen)
system\io\file.cs (16)
791return InternalReadAllText(path, Encoding.UTF8, true); 797public static String ReadAllText(String path, Encoding encoding) 821return InternalReadAllText(path, Encoding.UTF8, false); 827private static String InternalReadAllText(String path, Encoding encoding, bool checkHost) 854public static void WriteAllText(String path, String contents, Encoding encoding) 884private static void InternalWriteAllText(String path, String contents, Encoding encoding, bool checkHost) 995return InternalReadAllLines(path, Encoding.UTF8); 1000public static String[] ReadAllLines(String path, Encoding encoding) 1015private static String[] InternalReadAllLines(String path, Encoding encoding) 1041return ReadLinesIterator.CreateIterator(path, Encoding.UTF8); 1046public static IEnumerable<String> ReadLines(String path, Encoding encoding) 1076public static void WriteAllLines(String path, String[] contents, Encoding encoding) 1108public static void WriteAllLines(String path, IEnumerable<String> contents, Encoding encoding) 1154public static void AppendAllText(String path, String contents, Encoding encoding) 1169private static void InternalAppendAllText(String path, String contents, Encoding encoding) 1196public static void AppendAllLines(String path, IEnumerable<String> contents, Encoding encoding)
system\io\fileinfo.cs (1)
255return new StreamReader(FullPath, Encoding.UTF8, true, StreamReader.DefaultBufferSize, false);
system\io\ReadLinesIterator.cs (4)
28private readonly Encoding _encoding; 33private ReadLinesIterator(string path, Encoding encoding, StreamReader reader) 91internal static ReadLinesIterator CreateIterator(string path, Encoding encoding) 96private static ReadLinesIterator CreateIterator(string path, Encoding encoding, StreamReader reader)
system\io\streamreader.cs (16)
67private Encoding encoding; 138: this(stream, Encoding.UTF8, detectEncodingFromByteOrderMarks, DefaultBufferSize, false) { 141public StreamReader(Stream stream, Encoding encoding) 145public StreamReader(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks) 159public StreamReader(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize) 163public StreamReader(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize, bool leaveOpen) 202: this(path, Encoding.UTF8, detectEncodingFromByteOrderMarks, DefaultBufferSize) { 207public StreamReader(String path, Encoding encoding) 213public StreamReader(String path, Encoding encoding, bool detectEncodingFromByteOrderMarks) 220public StreamReader(String path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize) 227internal StreamReader(String path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize, bool checkHost) 244private void Init(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize, bool leaveOpen) { 297public virtual Encoding CurrentEncoding { 505encoding = Encoding.UTF8; 1263public override Encoding CurrentEncoding { 1264get { return Encoding.Unicode; }
system\io\streamwriter.cs (12)
60private Encoding encoding; 104private static volatile Encoding _UTF8NoBOM; 106internal static Encoding UTF8NoBOM { 128public StreamWriter(Stream stream, Encoding encoding) 136public StreamWriter(Stream stream, Encoding encoding, int bufferSize) 140public StreamWriter(Stream stream, Encoding encoding, int bufferSize, bool leaveOpen) 167public StreamWriter(String path, bool append, Encoding encoding) 174public StreamWriter(String path, bool append, Encoding encoding, int bufferSize): this(path, append, encoding, bufferSize, true) { 180internal StreamWriter(String path, bool append, Encoding encoding, int bufferSize, bool checkHost) 197private void Init(Stream streamArg, Encoding encodingArg, int bufferSize, bool shouldLeaveOpen) 350public override Encoding Encoding { 839Encoding encoding, Encoder encoder, Byte[] byteBuffer, Stream stream)
system\io\stringwriter.cs (1)
79public override Encoding Encoding {
system\io\textwriter.cs (4)
153public abstract Encoding Encoding { 625public override Encoding Encoding { 626get { return Encoding.Default; } 657public override Encoding Encoding {
system\reflection\emit\customattributebuilder.cs (1)
364byte[] utf8Str = Encoding.UTF8.GetBytes(str);
system\resources\resourcereader.cs (4)
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); 499return Encoding.Unicode.GetString(bytes, 0, byteLen);
system\resources\resourcewriter.cs (3)
290BinaryWriter bw = new BinaryWriter(_output, Encoding.UTF8); 342BinaryWriter names = new BinaryWriter(nameSection, Encoding.Unicode); 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\runtime\serialization\formatters\binary\binaryparser.cs (1)
47private static Encoding encoding = new UTF8Encoding(false, true);
system\security\cryptography\base64transforms.cs (4)
59byte[] tempBytes = Encoding.ASCII.GetBytes(temp); 82byte[] tempBytes = Encoding.ASCII.GetBytes(temp); 180tempChar = Encoding.ASCII.GetChars(transformBuffer, 0, 4*numBlocks); 223tempChar = Encoding.ASCII.GetChars(transformBuffer, 0, 4*numBlocks);
system\security\permissions\permissionattributes.cs (5)
1139Encoding[] encodings = new Encoding[] { Encoding.UTF8, 1141Encoding.ASCII, 1143Encoding.Unicode };
system\security\permissionset.cs (1)
2232BinaryWriter writer = new BinaryWriter( ms, Encoding.Unicode );
system\security\policy\policylevel.cs (3)
61private Encoding m_encoding; 828Encoding encoding = Encoding.UTF8;
system\security\policymanager.cs (2)
302Encoding encoding = Encoding.UTF8;
system\security\principal\windowsidentity.cs (2)
1034Encoding.ASCII.GetBytes(Win32Native.MICROSOFT_KERBEROS_NAME, 0, Win32Native.MICROSOFT_KERBEROS_NAME.Length, arrayPackageName, 0); 1070byte[] upnBytes = Encoding.Unicode.GetBytes(upn);
system\security\util\parser.cs (2)
27using Encoding = System.Text.Encoding; 362_t.ChangeFormat( System.Text.Encoding.GetEncoding( stream.GetNextString() ) );
system\security\util\tokenizer.cs (4)
204internal void ChangeFormat( System.Text.Encoding encoding ) 220if (encoding == System.Text.Encoding.Unicode) 226if (encoding == System.Text.Encoding.UTF8) 232if (encoding == System.Text.Encoding.ASCII)
system\string.cs (4)
1368unsafe public extern String(sbyte *value, int startIndex, int length, Encoding enc); 1371unsafe static private String CreateString(sbyte *value, int startIndex, int length, Encoding enc) { 1403byte* bytes, int byteLength, Encoding encoding) 1429unsafe internal int GetBytesFromEncoding(byte* pbNativeBuffer, int cbNativeBuffer,Encoding encoding)
system\stubhelpers.cs (9)
53string str = Encoding.Default.GetString(bytes); 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\asciiencoding.cs (1)
29public ASCIIEncoding() : base(Encoding.CodePageASCII)
system\text\codepageencoding.cs (6)
42private Encoding realEncoding = null; 82this.realEncoding = Encoding.GetEncoding(this.m_codePage); 88this.realEncoding = (Encoding)this.realEncoding.Clone(); 113private Encoding realEncoding = null; 122this.realEncoding = (Encoding)info.GetValue("encoding", typeof(Encoding));
system\text\decoderbestfitfallback.cs (2)
21internal Encoding encoding = null; 25internal InternalDecoderBestFitFallback(Encoding encoding)
system\text\decodernls.cs (3)
29protected Encoding m_encoding; 52info.SetType(typeof(Encoding.DefaultDecoder)); 58internal DecoderNLS( Encoding encoding )
system\text\encoderbestfitfallback.cs (2)
22internal Encoding encoding = null; 25internal InternalEncoderBestFitFallback(Encoding encoding)
system\text\encodernls.cs (4)
31protected Encoding m_encoding; 56info.SetType(typeof(Encoding.DefaultEncoder)); 62internal EncoderNLS(Encoding encoding) 266public Encoding Encoding
system\text\encoding.cs (54)
92private static volatile Encoding defaultEncoding; 93private static volatile Encoding unicodeEncoding; 94private static volatile Encoding bigEndianUnicode; 96private static volatile Encoding utf7Encoding; 98private static volatile Encoding utf8Encoding; 100private static volatile Encoding utf32Encoding; 103private static volatile Encoding asciiEncoding; 106private static volatile Encoding latin1Encoding; 363public static byte[] Convert(Encoding srcEncoding, Encoding dstEncoding, 378public static byte[] Convert(Encoding srcEncoding, Encoding dstEncoding, 418public static Encoding GetEncoding(int codepage) 420Encoding result = EncodingProvider.GetEncodingFromProvider(codepage); 442result = (Encoding)encodings[codepage]; 457if ((result = (Encoding)encodings[codepage]) != null) 466result = Encoding.Default; 557public static Encoding GetEncoding(int codepage, 560Encoding baseEncoding = EncodingProvider.GetEncodingFromProvider(codepage, encoderFallback, decoderFallback); 569Encoding fallbackEncoding = (Encoding)baseEncoding.Clone(); 577private static Encoding GetEncodingRare(int codepage) 581Encoding result; 655private static Encoding GetEncodingCodePage(int CodePage) 669public static Encoding GetEncoding(String name) 671Encoding baseEncoding = EncodingProvider.GetEncodingFromProvider(name); 687public static Encoding GetEncoding(String name, 690Encoding baseEncoding = EncodingProvider.GetEncodingFromProvider(name, encoderFallback, decoderFallback); 897Encoding newEncoding = (Encoding)this.MemberwiseClone(); 920public static Encoding ASCII 935private static Encoding Latin1 1397private static Encoding CreateDefaultEncoding() 1399Encoding enc; 1425public static Encoding Default { 1511public static Encoding Unicode { 1525public static Encoding BigEndianUnicode { 1536public static Encoding UTF7 { 1547public static Encoding UTF8 { 1558public static Encoding UTF32 { 1568Encoding that = value as Encoding; 1647private Encoding m_encoding; 1652public DefaultEncoder(Encoding encoding) 1665this.m_encoding = (Encoding)info.GetValue("encoding", typeof(Encoding)); 1775private Encoding m_encoding; 1779public DefaultDecoder(Encoding encoding) 1793this.m_encoding = (Encoding)info.GetValue("encoding", typeof(Encoding)); 1913Encoding enc; 1924internal unsafe EncodingCharBuffer(Encoding enc, DecoderNLS decoder, char* charStart, int charCount, 2111Encoding enc; 2116internal unsafe EncodingByteBuffer(Encoding inEncoding, EncoderNLS inEncoder,
system\text\encodinginfo.cs (2)
54public Encoding GetEncoding() 56return Encoding.GetEncoding(this.iCodePage);
system\text\encodingprovider.cs (16)
16public abstract Encoding GetEncoding(string name); 17public abstract Encoding GetEncoding(int codepage); 20public virtual Encoding GetEncoding(string name, EncoderFallback encoderFallback, DecoderFallback decoderFallback) 22Encoding enc = GetEncoding(name); 25enc = (Encoding)GetEncoding(name).Clone(); 33public virtual Encoding GetEncoding(int codepage, EncoderFallback encoderFallback, DecoderFallback decoderFallback) 35Encoding enc = GetEncoding(codepage); 38enc = (Encoding)GetEncoding(codepage).Clone(); 71internal static Encoding GetEncodingFromProvider(int codepage) 79Encoding enc = provider.GetEncoding(codepage); 87internal static Encoding GetEncodingFromProvider(string encodingName) 95Encoding enc = provider.GetEncoding(encodingName); 103internal static Encoding GetEncodingFromProvider(int codepage, EncoderFallback enc, DecoderFallback dec) 111Encoding encing = provider.GetEncoding(codepage, enc, dec); 119internal static Encoding GetEncodingFromProvider(string encodingName, EncoderFallback enc, DecoderFallback dec) 127Encoding encoding = provider.GetEncoding(encodingName, enc, dec);
system\text\gb18030encoding.cs (6)
284Encoding.EncodingByteBuffer buffer = new Encoding.EncodingByteBuffer( 468Encoding.EncodingCharBuffer buffer = new Encoding.EncodingCharBuffer( 874this.m_encoding = (Encoding)info.GetValue("m_encoding", typeof(Encoding));
system\text\isciiencoding.cs (6)
184Encoding.EncodingByteBuffer buffer = new Encoding.EncodingByteBuffer( 376Encoding.EncodingCharBuffer buffer = new Encoding.EncodingCharBuffer( 762public ISCIIEncoder(Encoding encoding) : base(encoding) 801public ISCIIDecoder(Encoding encoding) : base(encoding)
system\text\iso2022encoding.cs (12)
416Encoding.EncodingByteBuffer buffer = new Encoding.EncodingByteBuffer( 659Encoding.EncodingByteBuffer buffer = new Encoding.EncodingByteBuffer( 810Encoding.EncodingByteBuffer buffer = new Encoding.EncodingByteBuffer( 945Encoding.EncodingCharBuffer buffer = new Encoding.EncodingCharBuffer( 1273Encoding.EncodingCharBuffer buffer = new Encoding.EncodingCharBuffer( 1516Encoding.EncodingCharBuffer buffer = new Encoding.EncodingCharBuffer(
system\text\latin1encoding.cs (2)
28public Latin1Encoding() : base(Encoding.ISO_8859_1) 35base(Encoding.ISO_8859_1)
system\text\mlangcodepageencoding.cs (9)
44private Encoding realEncoding = null; 84this.realEncoding = Encoding.GetEncoding(this.m_codePage); 90this.realEncoding = (Encoding)this.realEncoding.Clone(); 115private Encoding realEncoding = null; 124this.realEncoding = (Encoding)info.GetValue("m_encoding", typeof(Encoding)); 153private Encoding realEncoding = null; 162this.realEncoding = (Encoding)info.GetValue("m_encoding", typeof(Encoding));
system\text\surrogateencoder.cs (3)
28private Encoding realEncoding = null; 38this.realEncoding = (Encoding)info.GetValue("m_encoding", typeof(Encoding));
system\text\unicodeencoding.cs (2)
2040this.m_encoding = (Encoding)info.GetValue("m_encoding", typeof(Encoding));
system\text\utf7encoding.cs (8)
533Encoding.EncodingByteBuffer buffer = new Encoding.EncodingByteBuffer( 680Encoding.EncodingCharBuffer buffer = new Encoding.EncodingCharBuffer( 922this.m_encoding = (Encoding)info.GetValue("encoding", typeof(Encoding)); 986this.m_encoding = (Encoding)info.GetValue("encoding", typeof(Encoding));
system\text\utf8encoding.cs (4)
2440this.m_encoding = (Encoding)info.GetValue("encoding", typeof(Encoding)); 2515this.m_encoding = (Encoding)info.GetValue("encoding", typeof(Encoding));
PresentationBuildTasks (3)
Base\System\IO\Packaging\Compoundfile\FormatVersion.cs (1)
322binarywriter = new BinaryWriter(stream, System.Text.Encoding.Unicode);
BuildTasks\Microsoft\Build\Tasks\Windows\UpdateManifestForBrowserApplication.cs (1)
131manifestWriter = new XmlTextWriter(appManifestFile, System.Text.Encoding.UTF8);
Framework\System\Windows\Markup\BamlBinaryWriter.cs (1)
24public BamlBinaryWriter(Stream stream, Encoding code)
PresentationCore (4)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (2)
306bw.Write( System.Text.Encoding.Unicode.GetBytes( data ) ); 724return System.Text.Encoding.Unicode.GetString(bytestring);
Core\CSharp\System\Windows\Media\ImageSourceConverter.cs (2)
280string strPBrush = System.Text.Encoding.ASCII.GetString(rawData, pHeader.headersize + 12, 6); 288byte[] searchArray = System.Text.Encoding.ASCII.GetBytes("BM");
PresentationFramework (23)
src\Framework\System\Windows\Controls\DataGridClipboardHelper.cs (4)
87byte[] sourceBytes = Encoding.Unicode.GetBytes(content.ToString()); 88byte[] destinationBytes = Encoding.Convert(Encoding.Unicode, Encoding.UTF8, sourceBytes);
src\Framework\System\Windows\Documents\FixedSchema.cs (2)
46if (!encoding.Equals(Encoding.Unicode.WebName, StringComparison.OrdinalIgnoreCase) && 47!encoding.Equals(Encoding.UTF8.WebName, StringComparison.OrdinalIgnoreCase))
src\Framework\System\Windows\Documents\RtfToXamlLexer.cs (4)
40_currentEncoding = Encoding.GetEncoding(_currentCodePage); 305_currentEncoding = Encoding.GetEncoding(_currentCodePage); 310internal Encoding CurrentEncoding 597private Encoding _currentEncoding;
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (5)
3450Encoding e = Encoding.GetEncoding(CodePageList[i]); 7826_rtfBytes = Encoding.Default.GetBytes(rtfString); 8852Encoding ec = Encoding.GetEncoding(932);
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (1)
723using (StreamWriter writer = new StreamWriter(targetStream, Text.Encoding.Unicode))
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (5)
2227return Encoding.GetEncoding(XamlRtfConverter.RtfCodePage).GetString(imageHexBytes); 3905Encoding e = null; 3937private static void AppendRtfChar(StringBuilder sb, char c, int cp, ref Encoding e, byte[] rgAnsi, char[] rgChar) 4020private static void AppendRtfUnicodeChar(StringBuilder sb, char c, int cp, ref Encoding e, byte[] rgAnsi, char[] rgChar) 4024e = Encoding.GetEncoding(cp);
src\Framework\System\Windows\Markup\BamlBinaryReader.cs (1)
20public BamlBinaryReader(Stream stream, Encoding code)
src\Framework\System\Windows\Markup\BamlBinaryWriter.cs (1)
24public BamlBinaryWriter(Stream stream, Encoding code)
SMDiagnostics (1)
System\ServiceModel\Diagnostics\EncodingFallbackAwareXmlTextWriter.cs (1)
13Encoding encoding;
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 (215)
compmod\microsoft\csharp\csharpcodeprovider.cs (5)
676using (StreamWriter sw = new StreamWriter(temp, Encoding.UTF8)) { 3440string [] lines = ReadAllLines(outputFile, Encoding.UTF8, FileShare.ReadWrite); 3509private static string[] ReadAllLines(String file, Encoding encoding, FileShare share) 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);
compmod\system\codedom\compiler\IndentTextWriter.cs (1)
57public override Encoding Encoding {
compmod\system\diagnostics\TextWriterTraceListener.cs (5)
178private static Encoding GetEncodingWithFallback(Encoding encoding) 181Encoding fallbackEncoding = (Encoding)encoding.Clone(); 206Encoding noBOMwithFallback = GetEncodingWithFallback(new UTF8Encoding(false));
net\System\IriHelper.cs (4)
231Encoding noFallbackCharUTF8 = (Encoding)Encoding.UTF8.Clone(); 355int encodedBytesCount = Encoding.UTF8.GetBytes(pInput + next, surrogatePair ? 2 : 1, pEncodedBytes, maxNumberOfBytesEncoded);
net\System\Net\_BasicClient.cs (3)
126GlobalLog.Print("BasicClient::EncodingRightGetBytes(): Default Encoding is:" + Encoding.Default.EncodingName); 128byte[] bytes = Encoding.Default.GetBytes(rawString); 129string rawCopy = Encoding.Default.GetString(bytes);
net\System\Net\_CommandStream.cs (3)
483private Encoding m_Encoding = Encoding.UTF8; 487protected Encoding Encoding {
net\System\Net\_DigestClient.cs (6)
857value = Encoding.UTF8.GetString(bytes); 892byte[] bytes = charset==Charset.UTF8 ? Encoding.UTF8.GetBytes(rawString) : Encoding.Default.GetBytes(rawString); 913byte[] bytes = Encoding.Default.GetBytes(rawString); 914string rawCopy = Encoding.Default.GetString(bytes); 1269byte[] hash = digestChallenge.MD5provider.ComputeHash(Encoding.ASCII.GetBytes(hashMe));
net\System\Net\_FtpControlStream.cs (2)
293Encoding = Encoding.UTF8; 295Encoding = Encoding.Default;
net\System\Net\_NTAuthentication.cs (2)
809list.Add(new SecurityBuffer(Encoding.Unicode.GetBytes(m_Spn), BufferType.TargetHost)); 858list.Add(realm == null ? new SecurityBuffer(0, BufferType.Parameters) : new SecurityBuffer(Encoding.Unicode.GetBytes(realm), BufferType.Parameters));
net\System\Net\_RegBlobWebProxyDataBuilder.cs (1)
164stringOut = Encoding.UTF8.GetString(m_RegistryBytes, m_ByteOffset, stringSize);
net\System\Net\_SecureChannel.cs (1)
1117GlobalLog.Print("SecureChannel#" + ValidationHelper.HashString(this) + "::Encrypt() buffer:[" + Encoding.ASCII.GetString(buffer, 0, Math.Min(buffer.Length,128)) + "]");
net\System\Net\Cache\WinInetCache.cs (1)
556entry.MetaInfo = Encoding.Unicode.GetString(buffer, (int)bufferPtr->_OffsetHeaderInfo, (bufferCharLength-(int)bufferPtr->_OffsetHeaderInfo/2)*2);
net\System\Net\HttpListener.cs (3)
2334byte[] byteReason = Encoding.Default.GetBytes(statusDescription); 2340byte[] byteContentLength = Encoding.Default.GetBytes("0"); 2368byte[] byteChallenge = Encoding.Default.GetBytes((string) challenges[i]);
net\System\Net\HttpListenerRequest.cs (8)
362public /* override */ Encoding ContentEncoding { 368return Encoding.GetEncoding(postDataCharset); 379return Encoding.GetEncoding(charSet); 386return Encoding.Default; 1332private static string UrlDecodeStringFromStringInternal(string s, Encoding e) { 1405private Encoding _encoding; 1414internal UrlDecoder(int bufferSize, Encoding encoding) { 1458internal static void FillFromString(NameValueCollection nvc, String s, bool urlencoded, Encoding encoding) {
net\System\Net\HttpListenerRequestUriBuilder.cs (9)
22private static readonly Encoding utf8Encoding; 23private static readonly Encoding ansiEncoding; 54ansiEncoding = Encoding.GetEncoding(0, new EncoderExceptionFallback(), new DecoderExceptionFallback()); 157Encoding secondaryEncoding = GetEncoding(EncodingType.Secondary); 171private static Encoding GetEncoding(EncodingType type) 189private ParsingResult BuildRequestUriUsingRawPath(Encoding encoding) 225private ParsingResult ParseRawPath(Encoding encoding) 327private bool AddPercentEncodedOctetToRawOctetsList(Encoding encoding, string escapedCharacter) 342private bool EmptyDecodeAndAppendRawOctetsList(Encoding encoding)
net\System\Net\HttpListenerResponse.cs (2)
27private Encoding m_ContentEncoding; 70public /* override */ Encoding ContentEncoding {
net\System\Net\HttpWebRequest.cs (11)
4698offset = Encoding.ASCII.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length, WriteBuffer, 0); 4796offset = Encoding.ASCII.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length, WriteBuffer, 0); 4798offset += Encoding.ASCII.GetBytes(scheme, 0, scheme.Length, WriteBuffer, offset); 4801offset += Encoding.ASCII.GetBytes(path, 0, path.Length, WriteBuffer, offset); 4862offset = Encoding.ASCII.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length, WriteBuffer, 0); 4864offset += Encoding.ASCII.GetBytes(scheme, 0, scheme.Length, WriteBuffer, offset); 4865offset += Encoding.ASCII.GetBytes(userInfo, 0, userInfo.Length, WriteBuffer, offset); 4868offset += Encoding.ASCII.GetBytes(path, 0, path.Length, WriteBuffer, offset); 4900offset = Encoding.ASCII.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length, WriteBuffer, 0); 4902offset += Encoding.ASCII.GetBytes(pathAndQuery, 0, pathAndQuery.Length, WriteBuffer, offset); 5104if (Logging.On) Logging.PrintInfo(Logging.Web, this, "Request: "+Encoding.ASCII.GetString(WriteBuffer, 0, offset));
net\System\Net\mail\AlternateView.cs (1)
76public static AlternateView CreateAlternateViewFromString(string content, Encoding contentEncoding, string mediaType){
net\System\Net\mail\Attachment.cs (13)
119Encoding encoding; 122encoding = Text.Encoding.GetEncoding(contentType.CharSet); 126encoding = Text.Encoding.ASCII; 129encoding = Text.Encoding.GetEncoding(MimeBasePart.defaultCharSet); 144internal void SetContentFromString(string contentString, Encoding encoding, string mediaType) { 177encoding = Text.Encoding.ASCII; 180encoding = Text.Encoding.GetEncoding(MimeBasePart.defaultCharSet); 296Encoding nameEncoding; 356Encoding encoding = NameEncoding; 358encoding = Encoding.GetEncoding(MimeBasePart.defaultCharSet); 372Encoding nameEncoding = MimeBasePart.DecodeEncoding(value); 388public Encoding NameEncoding { 425public static Attachment CreateAttachmentFromString(string content, string name, Encoding contentEncoding, string mediaType){
net\System\Net\mail\BufferBuilder.cs (1)
72byte[] bytes = Encoding.UTF8.GetBytes(value.ToCharArray(), offset, count);
net\System\Net\mail\ContentDisposition.cs (2)
302Encoding encoding = MimeBasePart.DecodeEncoding(value); 315encoding = Encoding.GetEncoding(MimeBasePart.defaultCharSet);
net\System\Net\mail\ContentType.cs (3)
140Encoding nameEncoding = MimeBasePart.DecodeEncoding(value); 223Encoding encoding = MimeBasePart.DecodeEncoding(value); 236encoding =Encoding.GetEncoding(MimeBasePart.defaultCharSet);
net\System\Net\mail\EncodedStreamFactory.cs (3)
44internal IEncodableStream GetEncoderForHeader(Encoding encoding, bool useBase64Encoding, int headerTextLength) 64protected byte[] CreateHeader(Encoding encoding, bool useBase64Encoding) 68return Encoding.ASCII.GetBytes(header);
net\System\Net\mail\LinkedResource.cs (1)
64public static LinkedResource CreateLinkedResourceFromString(string content, Encoding contentEncoding, string mediaType){
net\System\Net\mail\MailAddress.cs (6)
23private readonly Encoding displayNameEncoding; 34this.displayNameEncoding = Encoding.GetEncoding(MimeBasePart.defaultCharSet); 46public MailAddress(string address) : this(address, null, (Encoding)null) { 50public MailAddress(string address, string displayName) : this(address, displayName, (Encoding)null) { 66public MailAddress(string address, string displayName, Encoding displayNameEncoding) { 74this.displayNameEncoding = displayNameEncoding ?? Encoding.GetEncoding(MimeBasePart.defaultCharSet);
net\System\Net\mail\MailMessage.cs (6)
30Encoding bodyEncoding; 167public Encoding SubjectEncoding { 182public Encoding HeadersEncoding { 201bodyEncoding = Text.Encoding.ASCII; 204bodyEncoding = Text.Encoding.GetEncoding(MimeBasePart.defaultCharSet); 210public Encoding BodyEncoding {
net\System\Net\mail\Message.cs (9)
27Encoding subjectEncoding; 28Encoding headersEncoding; 150Encoding inputEncoding = null; 175subjectEncoding = Encoding.GetEncoding(MimeBasePart.defaultCharSet); 181internal Encoding SubjectEncoding { 201internal Encoding HeadersEncoding { 334this.headersEncoding = Encoding.GetEncoding(MimeBasePart.defaultCharSet); 365this.headersEncoding = Encoding.GetEncoding(MimeBasePart.defaultCharSet); 457this.headersEncoding = Encoding.GetEncoding(MimeBasePart.defaultCharSet);
net\System\Net\mail\MimeBasePart.cs (13)
19internal static bool ShouldUseBase64Encoding(Encoding encoding){ 20if (encoding == Encoding.Unicode || encoding == Encoding.UTF8 || encoding == Encoding.UTF32 || encoding == Encoding.BigEndianUnicode) { 27internal static string EncodeHeaderValue(string value, Encoding encoding, bool base64Encoding){ 32internal static string EncodeHeaderValue(string value, Encoding encoding, bool base64Encoding, int headerLength) { 41encoding = Encoding.GetEncoding(MimeBasePart.defaultCharSet); 80IEncodableStream s = encoderFactory.GetEncoderForHeader(Encoding.GetEncoding(charSet), base64Encoding, 0); 84Encoding encoding = Encoding.GetEncoding(charSet); 94internal static Encoding DecodeEncoding(string value) { 104return Encoding.GetEncoding(charSet);
net\System\Net\mail\MimeWriter.cs (1)
31this.boundaryBytes = Encoding.ASCII.GetBytes(boundary);
net\System\Net\mail\SmtpCommands.cs (19)
656internal readonly static byte[] Auth = Encoding.ASCII.GetBytes("AUTH "); 657internal readonly static byte[] CRLF = Encoding.ASCII.GetBytes("\r\n"); 658internal readonly static byte[] Data = Encoding.ASCII.GetBytes("DATA\r\n"); 659internal readonly static byte[] DataStop = Encoding.ASCII.GetBytes("\r\n.\r\n"); 660internal readonly static byte[] EHello = Encoding.ASCII.GetBytes("EHLO "); 661internal readonly static byte[] Expand = Encoding.ASCII.GetBytes("EXPN "); 662internal readonly static byte[] Hello = Encoding.ASCII.GetBytes("HELO "); 663internal readonly static byte[] Help = Encoding.ASCII.GetBytes("HELP"); 664internal readonly static byte[] Mail = Encoding.ASCII.GetBytes("MAIL FROM:"); 665internal readonly static byte[] Noop = Encoding.ASCII.GetBytes("NOOP\r\n"); 666internal readonly static byte[] Quit = Encoding.ASCII.GetBytes("QUIT\r\n"); 667internal readonly static byte[] Recipient = Encoding.ASCII.GetBytes("RCPT TO:"); 668internal readonly static byte[] Reset = Encoding.ASCII.GetBytes("RSET\r\n"); 669internal readonly static byte[] Send = Encoding.ASCII.GetBytes("SEND FROM:"); 670internal readonly static byte[] SendAndMail= Encoding.ASCII.GetBytes("SAML FROM:"); 671internal readonly static byte[] SendOrMail = Encoding.ASCII.GetBytes("SOML FROM:"); 672internal readonly static byte[] Turn = Encoding.ASCII.GetBytes("TURN\r\n"); 673internal readonly static byte[] Verify = Encoding.ASCII.GetBytes("VRFY "); 674internal readonly static byte[] StartTls = Encoding.ASCII.GetBytes("STARTTLS");
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 (17)
44Encoding m_Encoding = Encoding.Default; 140public Encoding Encoding { 632formHeaderBytes = Encoding.UTF8.GetBytes(formHeader); 633boundaryBytes = Encoding.ASCII.GetBytes("\r\n--" + boundary + "--\r\n"); 762byte[] buffer = Encoding.ASCII.GetBytes(values.ToString()); 1571Encoding enc = null; 1606enc = Encoding.GetEncoding(item); 1625Encoding[] encodings = { Encoding.UTF8, Encoding.UTF32, Encoding.Unicode, Encoding.BigEndianUnicode }; 1674return UrlEncode(str, Encoding.UTF8); 1677private static string UrlEncode(string str, Encoding e) { 1680return Encoding.ASCII.GetString(UrlEncodeToBytes(str, e)); 1683private static byte[] UrlEncodeToBytes(string str, Encoding e) {
net\System\Net\WebHeaderCollection.cs (6)
1151Encoding decoder = Encoding.GetEncoding("utf-8", EncoderFallback.ExceptionFallback, 1566GlobalLog.Enter("WebHeaderCollection::ParseHeadersStrict(): size:" + size.ToString() + ", unparsed:" + unparsed.ToString() + " buffer:[" + Encoding.ASCII.GetString(buffer, unparsed, Math.Min(256, size-unparsed)) + "]"); 2103m_Bytes = Encoding.Default.GetBytes(m_String); 2104string copy = Encoding.Default.GetString(m_Bytes); 2106m_Bytes = Encoding.UTF8.GetBytes(m_String);
net\System\Net\WebSockets\WebSocketBuffer.cs (1)
438reason = Encoding.UTF8.GetString(reasonBlob.Array, reasonBlob.Offset, reasonBlob.Count);
net\System\Net\WebSockets\WebSocketHelpers.cs (1)
206byte[] toHash = Encoding.UTF8.GetBytes(acceptString);
net\System\Net\WebUtility.cs (6)
471byte[] bytes = Encoding.UTF8.GetBytes(value); 472return Encoding.UTF8.GetString(UrlEncode(bytes, 0, bytes.Length, false /* alwaysCreateNewReturnValue */)); 488private static string UrlDecodeInternal(string value, Encoding encoding) 590return UrlDecodeInternal(encodedValue, Encoding.UTF8); 739private Encoding _encoding; 750internal UrlDecoder(int bufferSize, Encoding encoding)
net\System\UriHelper.cs (5)
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);
security\system\security\cryptography\x509\x509extension.cs (1)
497Encoding.ASCII.GetBytes(objId, 0, objId.Length, szObjId, 0);
security\system\security\cryptography\x509\x509utils.cs (3)
317Encoding.ASCII.GetBytes(s, 0, s.Length, arr, 0); 328Encoding.Unicode.GetBytes(s, 0, s.Length, arr, 0); 512byte[] ansiOid = Encoding.ASCII.GetBytes(oidStrs[index]);
services\monitoring\system\diagnosticts\AsyncStreamReader.cs (5)
33private Encoding encoding; 60internal AsyncStreamReader(Process process, Stream stream, UserCallBack callback, Encoding encoding) 69internal AsyncStreamReader(Process process, Stream stream, UserCallBack callback, Encoding encoding, int bufferSize) 79private void Init(Process process, Stream stream, UserCallBack callback, Encoding encoding, int bufferSize) { 125public virtual Encoding CurrentEncoding {
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (1)
360StreamWriter iniWriter = new StreamWriter(IniFilePath, false, Encoding.Unicode);
services\monitoring\system\diagnosticts\Process.cs (4)
2158Encoding enc = (startInfo.StandardOutputEncoding != null) ? startInfo.StandardOutputEncoding : Console.OutputEncoding; 2162Encoding enc = (startInfo.StandardErrorEncoding != null) ? startInfo.StandardErrorEncoding : Console.OutputEncoding; 2770envBlock = Encoding.Unicode.GetBytes(stringBuff.ToString()); 2773envBlock = Encoding.Default.GetBytes(stringBuff.ToString());
services\monitoring\system\diagnosticts\ProcessStartInfo.cs (4)
58Encoding standardOutputEncoding; 59Encoding standardErrorEncoding; 258public Encoding StandardErrorEncoding { 263public Encoding StandardOutputEncoding {
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (1)
658string counter = new String((sbyte*)counterNamesPtr, start, i-start, Encoding.Unicode);
sys\system\io\ports\SerialPort.cs (5)
71private Encoding encoding = System.Text.Encoding.ASCII; // ASCII is default encoding for modem communication, etc. 72private Decoder decoder = System.Text.Encoding.ASCII.GetDecoder(); 73private int maxByteCountForSingleChar = System.Text.Encoding.ASCII.GetMaxByteCount(1); 291public Encoding Encoding
System.Activities.DurableInstancing (4)
System\Activities\DurableInstancing\CreateWorkflowOwnerAsyncResult.cs (1)
156byte[] workflowHostTypeBuffer = Encoding.Unicode.GetBytes(workflowHostType.ToString());
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (2)
298byte[] workflowHostTypeBuffer = Encoding.Unicode.GetBytes(((XName)instanceValue.Value).ToString()); 416byte[] serviceDeploymentHashBuffer = Encoding.Unicode.GetBytes(string.Format(CultureInfo.InvariantCulture, "{0}#{1}#{2}#{3}#{4}",
System\Activities\DurableInstancing\SerializationUtilities.cs (1)
266byte[] identityHashBuffer = Encoding.Unicode.GetBytes(id.ToString());
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\Converters\EncodingSearchableStringConverter.cs (2)
17if (value is Encoding) 19results.Add(((Encoding)value).EncodingName.ToString());
System.Activities.Presentation\System\Activities\Presentation\DesignerMetadata.cs (1)
65builder.AddCustomAttributes(typeof(Encoding), new SearchableStringConverterAttribute(typeof(EncodingSearchableStringConverter)));
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
578using (StreamWriter fileStreamWriter = new StreamWriter(fileName, false, Encoding.UTF8))
System.Configuration (8)
System\Configuration\BaseConfigurationRecord.cs (3)
4462private Encoding _encoding; // encoding of the stream 4468_encoding = Encoding.UTF8; 4486internal Encoding StreamEncoding {
System\Configuration\DPAPIProtectedConfigurationProvider.cs (2)
181return Encoding.Unicode.GetString(buf); 245return PrepareDataBlob((s != null) ? Encoding.Unicode.GetBytes(s) : new byte[0]);
System\Configuration\MgmtConfigurationRecord.cs (2)
697XmlParserContext context = new XmlParserContext(null, null, null, XmlSpace.Default, Encoding.Unicode); 1202Encoding encoding = null;
System\Configuration\XmlUtil.cs (1)
1009XmlParserContext context = new XmlParserContext(null, null, null, XmlSpace.Default, Encoding.Unicode);
System.Core (8)
System\Diagnostics\EventSchemaTraceListener.cs (6)
690Encoding encNoBOMwithFallback; 701private static Encoding GetEncodingWithFallback(Encoding encoding) 704Encoding fallbackEncoding = (Encoding)encoding.Clone(); 711public override Encoding Encoding {
System\Security\Cryptography\CapiNative.cs (1)
1026Encoding.ASCII.GetBytes(s, 0, s.Length, arr, 0);
System\Security\Cryptography\Xml\ManifestSignedXml.cs (1)
493byte[] licenseXml = Encoding.UTF8.GetBytes(licenseNode.OuterXml);
System.Data (65)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\EncodingSearchableStringConverter.cs (2)
17if (value is Encoding) 19results.Add(((Encoding)value).EncodingName.ToString());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignerMetadata.cs (1)
65builder.AddCustomAttributes(typeof(Encoding), new SearchableStringConverterAttribute(typeof(EncodingSearchableStringConverter)));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
578using (StreamWriter fileStreamWriter = new StreamWriter(fileName, false, Encoding.UTF8))
fx\src\data\Microsoft\SqlServer\Server\SqlRecordBuffer.cs (2)
493byte[] bytes = new byte[2 + System.Text.Encoding.Unicode.GetByteCount(value)]; 496System.Text.Encoding.Unicode.GetBytes(value, 0, value.Length, bytes, 2);
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (1)
3611WriterSettings.Encoding = System.Text.Encoding.Unicode;
fx\src\data\System\Data\Odbc\OdbcConnection.cs (2)
363value = Encoding.Unicode.GetString(buffer, 0, Math.Min(cbActual, buffer.Length)); 448value = Encoding.Unicode.GetString(buffer, 0, Math.Min(cbActual, buffer.Length));
fx\src\data\System\Data\Odbc\OdbcParameter.cs (6)
338cch = System.Text.Encoding.Default.GetMaxByteCount(cch); 350cch = System.Text.Encoding.Default.GetMaxByteCount(cch); 648Encoding cpe = System.Text.Encoding.GetEncoding(culInfo.TextInfo.ANSICodePage); 851Encoding cpe = System.Text.Encoding.GetEncoding(culInfo.TextInfo.ANSICodePage);
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (2)
299else if (System.Text.Encoding.Unicode.GetString(bytes, 0, hdrlength) != UDL.Header) { 305connectionString = System.Text.Encoding.Unicode.GetString(bytes, 0, count);
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256EncryptionKey.cs (3)
88SqlSecurityUtility.GetHMACWithSHA256(Encoding.Unicode.GetBytes(encryptionKeySalt), RootKey, buff1); 94SqlSecurityUtility.GetHMACWithSHA256(Encoding.Unicode.GetBytes(macKeySalt),RootKey,buff2); 100SqlSecurityUtility.GetHMACWithSHA256(Encoding.Unicode.GetBytes(ivKeySalt),RootKey,buff3);
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCertificateStoreProvider.cs (2)
209byte[] masterKeyPathBytes = Encoding.Unicode.GetBytes(masterKeyPath.ToLowerInvariant()); 315byte[] masterkeyMetadataBytes = Encoding.Unicode.GetBytes(masterkeyMetadata.ToLowerInvariant());
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCngProvider.cs (1)
189byte[] masterKeyPathBytes = Encoding.Unicode.GetBytes(masterKeyPath.ToLowerInvariant());
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (1)
195byte[] masterKeyPathBytes = Encoding.Unicode.GetBytes(masterKeyPath.ToLowerInvariant());
fx\src\data\System\Data\SqlClient\SqlConnection.cs (4)
2156Encoding cp = System.Text.Encoding.GetEncoding(TdsEnums.DEFAULT_ENGLISH_CODE_PAGE_VALUE); 2455Encoding cp = System.Text.Encoding.GetEncoding(TdsEnums.DEFAULT_ENGLISH_CODE_PAGE_VALUE);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
1896System.Text.Encoding encoding;
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (2)
375_accessTokenInBytes = System.Text.Encoding.Unicode.GetBytes(accessToken); 2603_parser.EnclaveType = Encoding.Unicode.GetString(data, 2, (data.Length - 2));
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (3)
14private Encoding _encoding; // Encoding for this character stream 21internal SqlSequentialTextReader(SqlDataReader reader, int columnIndex, Encoding encoding) 499public static Encoding SqlUnicodeEncodingInstance
fx\src\data\System\Data\SqlClient\TdsParser.cs (23)
154internal Encoding _defaultEncoding = null; // for sql character data 2403_defaultEncoding = System.Text.Encoding.GetEncoding(_defaultCodePage); 2411_defaultEncoding = System.Text.Encoding.GetEncoding(_defaultCodePage); 2472_defaultEncoding = System.Text.Encoding.GetEncoding(_defaultCodePage); 3206data = System.Text.Encoding.Unicode.GetString(tokenData, checked((int)dataOffset), checked((int)dataLen)); 3526rec.encoding = System.Text.Encoding.GetEncoding(rec.codePage); 4275col.encoding = System.Text.Encoding.GetEncoding(col.codePage); 4978private bool TryReadSqlStringValue(SqlBuffer value, byte type, int length, Encoding encoding, bool isPlp, TdsParserStateObject stateObj) { 5220System.Text.Encoding encoding = md.baseTI.encoding; 5245string strValue = System.Text.Encoding.Unicode.GetString(unencryptedBytes, 0, length); 5766Encoding encoding = Encoding.GetEncoding(GetCodePage(collation, stateObj)); 6669private Task WriteEncodingChar(string s, Encoding encoding, TdsParserStateObject stateObj, bool canAccumulate = true) { 6673private byte[] SerializeEncodingChar(string s, int numChars, int offset, Encoding encoding) { 6690private Task WriteEncodingChar(string s, int numChars, int offset, Encoding encoding, TdsParserStateObject stateObj, bool canAccumulate = true) { 6715internal int GetEncodingCharLength(string value, int numChars, int charOffset, Encoding encoding) { 9493Encoding saveEncoding = _defaultEncoding; 9649private Task WriteBulkCopyValueSetupContinuation(Task internalWriteTask, Encoding saveEncoding, SqlCollation saveCollation, int saveCodePage, int saveLCID) { 10277public override Encoding Encoding { 10360private async Task WriteXmlFeed(XmlDataFeed feed, TdsParserStateObject stateObj, bool needBom, Encoding encoding, int size) { 10405private async Task WriteTextFeed(TextDataFeed feed, Encoding encoding, bool needBom, TdsParserStateObject stateObj, int size) { 10621return NullIfCompletedWriteTask(WriteXmlFeed((XmlDataFeed)value, stateObj, IsBOMNeeded(type, value), Encoding.Unicode, paramSize)); 11275Encoding enc = metadata.encoding;
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (1)
826internal Encoding encoding;
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (2)
1597value = System.Text.Encoding.Unicode.GetString(buf, offset, cBytes); 1601internal bool TryReadStringWithEncoding(int length, System.Text.Encoding encoding, bool isPlp, out string value) {
fx\src\data\System\Data\SQLTypes\SQLString.cs (4)
149Encoding cpe = System.Text.Encoding.GetEncoding(culInfo.TextInfo.ANSICodePage); 383Encoding cpe = System.Text.Encoding.GetEncoding(culInfo.TextInfo.ANSICodePage);
fx\src\data\System\Data\SQLTypes\SqlXml.cs (1)
193 writerSettings.Encoding = Encoding.GetEncoding("utf-16");
System.Data.Entity (9)
System\Data\Common\CommandTrees\Internal\XmlExpressionDumper.cs (3)
27internal static Encoding DefaultEncoding { get { return Encoding.UTF8; } } 34internal XmlExpressionDumper(Stream stream, Encoding encoding, bool indent) : base()
System\Data\Mapping\MetadataMappingHasherVisitor.HashSourceBuilder.cs (2)
161start += Encoding.Unicode.GetBytes(s, 0, s.Length, _cachedBuffer, start); 187count += Encoding.Unicode.GetByteCount(s);
System\Data\Metadata\Edm\EntityType.cs (1)
308.ComputeHash(Encoding.ASCII.GetBytes(BuildEntityTypeDescription()));
System\Data\Query\InternalTrees\Dump.cs (3)
44private Dump(Stream stream, Encoding encoding, bool indent) 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 (59)
parent\Client\System\Data\Services\Client\BatchStream.cs (10)
56private Encoding batchEncoding; 74private Encoding changesetEncoding; 111internal BatchStream(Stream stream, string boundary, Encoding batchEncoding, bool requestStream) 140public Encoding Encoding 288internal static bool GetBoundaryAndEncodingFromMultipartMixedContentType(string contentType, out string boundary, out Encoding encoding) 575Encoding encoding; 1018private Encoding DetectEncoding() 1023return Encoding.ASCII; 1062return Encoding.UTF8; 1081return Encoding.ASCII;
parent\Client\System\Data\Services\Client\XmlUtil.cs (3)
156internal static XmlReader CreateXmlReader(Stream stream, Encoding encoding) 183internal static XmlWriterSettings CreateXmlWriterSettings(Encoding encoding) 208internal static XmlWriter CreateXmlWriterAndWriteProcessingInstruction(Stream stream, Encoding encoding)
System\Data\Services\DataService.cs (5)
590private static Encoding GetRequestAcceptEncoding(ContentFormat responseFormat, string acceptCharset) 899Encoding encoding = GetRequestAcceptEncoding(responseFormat, host.RequestAcceptCharSet); 1298Encoding encoding = HttpProcessUtility.EncodingFromAcceptCharset(host.RequestAcceptCharSet); 1571Encoding encoding = GetRequestAcceptEncoding(responseFormat, host.RequestAcceptCharSet); 1829Encoding encoding;
System\Data\Services\ErrorHandler.cs (8)
39private Encoding encoding; 48private ErrorHandler(HandleExceptionArgs args, Encoding encoding) 74Encoding encoding; 106Encoding encoding; 133Encoding encoding; 249private static Action<Stream> CreateErrorSerializer(HandleExceptionArgs args, Encoding encoding) 373private static void TryGetResponseFormatForError(DataServiceHostWrapper host, out string contentType, out Encoding encoding) 387private static void TryGetResponseFormatForError(string accept, string acceptCharset, out string contentType, out Encoding encoding)
System\Data\Services\HttpProcessUtility.cs (11)
39internal static Encoding FallbackEncoding 49private static Encoding MissingEncoding 56return Encoding.GetEncoding("ISO-8859-1", new EncoderExceptionFallback(), new DecoderExceptionFallback()); 67internal static string BuildContentType(string mime, Encoding encoding) 248internal static Encoding EncodingFromAcceptCharset(string acceptCharset) 252Encoding result = null; 278result = Encoding.GetEncoding(part.Charset, encoderFallback, decoderFallback); 308internal static KeyValuePair<string, string>[] ReadContentType(string contentType, out string mime, out Encoding encoding) 419private static Encoding EncodingFromName(string name) 444return Encoding.GetEncoding(name); 1113internal Encoding SelectEncoding()
System\Data\Services\Parsing\WebConvert.cs (1)
363string keyValue = Encoding.UTF8.GetString(byteArrayValue);
System\Data\Services\ResponseBodyWriter.cs (2)
29private readonly Encoding encoding; 57Encoding encoding,
System\Data\Services\Serializers\Atom10FormatterFactory.cs (2)
81internal override XmlReader CreateReader(Stream stream, Encoding encoding) 94internal override XmlWriter CreateWriter(Stream stream, Encoding encoding)
System\Data\Services\Serializers\AtomServiceDocumentSerializer.cs (1)
49Encoding encoding)
System\Data\Services\Serializers\Deserializer.cs (2)
142System.Text.Encoding encoding; 241Encoding encoding;
System\Data\Services\Serializers\IndentedTextWriter.cs (1)
50public override Encoding Encoding
System\Data\Services\Serializers\JsonDeserializer.cs (1)
41internal JsonDeserializer(Stream requestStream, Encoding encoding, bool update, IDataService dataService, UpdateTracker tracker)
System\Data\Services\Serializers\JsonSerializer.cs (1)
52Encoding encoding,
System\Data\Services\Serializers\JsonServiceDocumentSerializer.cs (1)
45Encoding encoding)
System\Data\Services\Serializers\MetadataSerializer.cs (1)
45Encoding encoding)
System\Data\Services\Serializers\PlainXmlDeserializer.cs (1)
44internal PlainXmlDeserializer(Stream stream, Encoding encoding, IDataService dataService, bool update, UpdateTracker tracker)
System\Data\Services\Serializers\PlainXmlSerializer.cs (1)
44Encoding encoding)
System\Data\Services\Serializers\SyndicationDeserializer.cs (2)
46internal SyndicationDeserializer(Stream stream, Encoding encoding, IDataService dataService, bool update, SyndicationFormatterFactory factory, UpdateTracker tracker) 188Encoding encoding;
System\Data\Services\Serializers\SyndicationFormatterFactory.cs (2)
63internal abstract XmlReader CreateReader(Stream stream, Encoding encoding); 72internal abstract XmlWriter CreateWriter(Stream stream, Encoding encoding);
System\Data\Services\Serializers\SyndicationSerializer.cs (1)
87Encoding encoding,
System\Data\Services\Serializers\TextSerializer.cs (1)
34internal TextSerializer(Stream output, Encoding encoding)
System\Data\Services\Serializers\XmlDocumentSerializer.cs (1)
47Encoding encoding)
System.Data.Services.Client (27)
parent\Server\System\Data\Services\HttpProcessUtility.cs (7)
39internal static Encoding FallbackEncoding 49private static Encoding MissingEncoding 56return Encoding.GetEncoding("ISO-8859-1", new EncoderExceptionFallback(), new DecoderExceptionFallback()); 308internal static KeyValuePair<string, string>[] ReadContentType(string contentType, out string mime, out Encoding encoding) 419private static Encoding EncodingFromName(string name) 444return Encoding.GetEncoding(name); 1113internal Encoding SelectEncoding()
System\Data\Services\Client\BatchStream.cs (10)
56private Encoding batchEncoding; 74private Encoding changesetEncoding; 111internal BatchStream(Stream stream, string boundary, Encoding batchEncoding, bool requestStream) 140public Encoding Encoding 288internal static bool GetBoundaryAndEncodingFromMultipartMixedContentType(string contentType, out string boundary, out Encoding encoding) 575Encoding encoding; 1018private Encoding DetectEncoding() 1023return Encoding.ASCII; 1062return Encoding.UTF8; 1081return Encoding.ASCII;
System\Data\Services\Client\DataServiceContext.cs (6)
3970Encoding encoding = null; 4673Encoding encoding; 4678encoding = Encoding.UTF8; 5273Encoding encoding = Encoding.UTF8; 5539Encoding postEncoding = null;
System\Data\Services\Client\DataServiceRequest.cs (1)
80Encoding encoding = null;
System\Data\Services\Client\XmlUtil.cs (3)
156internal static XmlReader CreateXmlReader(Stream stream, Encoding encoding) 183internal static XmlWriterSettings CreateXmlWriterSettings(Encoding encoding) 208internal static XmlWriter CreateXmlWriterAndWriteProcessingInstruction(Stream stream, Encoding encoding)
System.Data.SqlXml (9)
System\Xml\Xsl\Xslt\XsltLoader.cs (2)
545Encoding encoding = Encoding.GetEncoding(input.Value);
System\Xml\Xsl\XsltOld\SequentialOutput.cs (3)
63protected Encoding encoding; 80private Encoding utf8Encoding; 540this.utf8Encoding = Encoding.UTF8;
System\Xml\Xsl\XsltOld\XsltOutput.cs (4)
29private Encoding encoding = System.Text.Encoding.UTF8; 79internal Encoding Encoding { 123this.encoding = System.Text.Encoding.GetEncoding(value);
System.Drawing (3)
commonui\System\Drawing\ImageConverter.cs (2)
216string strPBrush = System.Text.Encoding.ASCII.GetString(rawData, pHeader.headersize + 12, 6); 224byte[] searchArray = System.Text.Encoding.ASCII.GetBytes("BM");
commonui\System\Drawing\Printing\PrinterSettings.cs (1)
1404byte[] bytes = System.Text.Encoding.Default.GetBytes(str);
System.IdentityModel (34)
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\Selectors\X509CertificateChain.cs (1)
346byte[] ansiOid = Encoding.ASCII.GetBytes(oidStrs[index]);
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\SspiSafeHandles.cs (1)
1415Encoding.Unicode.GetBytes(s, 0, s.Length, bytes, 0);
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 (4)
207DebugEncryptedTokenClearText(plainText, Encoding.UTF8); 248static void DebugEncryptedTokenClearText(byte[] bytes, Encoding encoding) 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 (4)
Instrumentation\ManagementInstaller.cs (1)
154using(StreamWriter log = new StreamWriter(mofFile, false, Encoding.Unicode))
Instrumentation\SchemaRegistration.cs (2)
413 using(StreamWriter log = new StreamWriter(CodePath, false, Encoding.Unicode)) 420 using(StreamWriter log = new StreamWriter(MofPath, false, Encoding.Unicode))
WmiGenerator.cs (1)
215tw = new StreamWriter(new FileStream (filePath,FileMode.Create),System.Text.Encoding.UTF8);
System.Messaging (2)
System\Messaging\Message.cs (2)
2413Encoding.Unicode.GetChars(bytes, 0, len * 2, charBuffer, 0); 2424Encoding.Unicode.GetBytes(value.ToCharArray(), 0, value.Length, byteBuffer, 0);
System.Runtime.Remoting (27)
channels\core\corechannel.cs (1)
670String base64String = Encoding.ASCII.GetString(byteArray,0, byteArray.Length);
channels\core\socketmanager.cs (1)
609String str = Encoding.ASCII.GetString(strBytes);
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 (2)
210string ComposeContentType(string contentType, Encoding encoding) { 298context.Response.ContentType = ComposeContentType("text/plain", Encoding.UTF8);
channels\http\httpsocketmanager.cs (6)
33private static byte[] s_httpVersion = Encoding.ASCII.GetBytes("HTTP/1.1"); 34private static byte[] s_httpVersionAndSpace = Encoding.ASCII.GetBytes("HTTP/1.1 "); 122byte[] nameBytes = Encoding.ASCII.GetBytes(name); 123byte[] valueBytes = Encoding.ASCII.GetBytes(value); 133byte[] statusCodeBytes = Encoding.ASCII.GetBytes(statusCode); 134byte[] reasonPhraseBytes = Encoding.ASCII.GetBytes(reasonPhrase);
channels\http\httpstreams.cs (7)
94private static byte[] _trailer = Encoding.ASCII.GetBytes("0\r\n\r\n"); // 0-length, no trailer, end chunked 95private static byte[] _endChunk = Encoding.ASCII.GetBytes("\r\n"); 228return Encoding.ASCII.GetBytes(str); 335private static byte[] _trailer = Encoding.ASCII.GetBytes("0\r\n\r\n\r\n"); // 0-length, null trailer, end chunked 336private static byte[] _endChunk = Encoding.ASCII.GetBytes("\r\n"); 493private static byte[] _bufferhttpContinue = Encoding.ASCII.GetBytes("HTTP/1.1 100 Continue\r\n\r\n"); 732requestURI = Encoding.UTF8.GetString(requestUriBytes, 0, decodedUriLength);
channels\sinks\soapformattersinks.cs (1)
280sb.Append(Encoding.ASCII.GetString(buffer, 0, readCount));
channels\tcp\tcpclientsocketmanager.cs (1)
33private static byte[] s_endOfLineBytes = Encoding.ASCII.GetBytes("\r\n");
channels\tcp\tcpsocketmanager.cs (4)
33private static byte[] s_protocolPreamble = Encoding.ASCII.GetBytes(".NET"); 307return Encoding.Unicode.GetString(data); 310return Encoding.UTF8.GetString(data); 335byte[] strBytes = Encoding.UTF8.GetBytes(str);
channels\tcp\tcpstreams.cs (1)
233private static byte[] s_endOfLineBytes = Encoding.ASCII.GetBytes("\r\n");
System.Runtime.Serialization (119)
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\IXmlJsonReaderInitializer.cs (2)
15void SetInput(byte[] buffer, int offset, int count, Encoding encoding, XmlDictionaryReaderQuotas quotas, 18void SetInput(Stream stream, Encoding encoding, XmlDictionaryReaderQuotas quotas,
System\Runtime\Serialization\Json\IXmlJsonWriterInitializer.cs (1)
14void SetOutput(Stream stream, Encoding encoding, bool ownsStream);
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (8)
52Encoding encoding; 59public JsonEncodingStreamWrapper(Stream stream, Encoding encoding, bool isReader) 154public static ArraySegment<byte> ProcessBuffer(byte[] buffer, int offset, int count, Encoding encoding) 228byteCount = Encoding.UTF8.GetBytes(chars, 0, charCount, bytes, 0); 303static Encoding GetEncoding(SupportedEncoding e) 341static SupportedEncoding GetSupportedEncoding(Encoding encoding) 473void InitForReading(Stream inputStream, Encoding expectedEncoding) 507void InitForWriting(Stream outputStream, Encoding writeEncoding)
System\Runtime\Serialization\Json\JsonReaderWriterFactory.cs (7)
36public static XmlDictionaryReader CreateJsonReader(Stream stream, Encoding encoding, XmlDictionaryReaderQuotas quotas, OnXmlDictionaryReaderClose onClose) 48public static XmlDictionaryReader CreateJsonReader(byte[] buffer, int offset, int count, Encoding encoding, XmlDictionaryReaderQuotas quotas, OnXmlDictionaryReaderClose onClose) 57return CreateJsonWriter(stream, Encoding.UTF8, true); 60public static XmlDictionaryWriter CreateJsonWriter(Stream stream, Encoding encoding) 65public static XmlDictionaryWriter CreateJsonWriter(Stream stream, Encoding encoding, bool ownsStream) 70public static XmlDictionaryWriter CreateJsonWriter(Stream stream, Encoding encoding, bool ownsStream, bool indent) 75public static XmlDictionaryWriter CreateJsonWriter(Stream stream, Encoding encoding, bool ownsStream, bool indent, string indentChars)
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (1)
26MemoryStream memoryStream = new MemoryStream(Encoding.UTF8.GetBytes(xmlContent));
System\Runtime\Serialization\Json\XmlJsonReader.cs (10)
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); 812public void SetInput(byte[] buffer, int offset, int count, Encoding encoding, XmlDictionaryReaderQuotas quotas, 850public void SetInput(Stream stream, Encoding encoding, XmlDictionaryReaderQuotas quotas, 1276string bufferAsString = Encoding.UTF8.GetString(buffer, offset, 4); 1287bufferAsString = Encoding.UTF8.GetString(buffer, offset, 4);
System\Runtime\Serialization\Json\XmlJsonWriter.cs (2)
302public void SetOutput(Stream stream, Encoding encoding, bool ownsStream) 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 (9)
38Encoding encoding; 52public EncodingStreamWrapper(Stream stream, Encoding encoding) 120static Encoding GetEncoding(SupportedEncoding e) 138static Encoding GetSafeEncoding(SupportedEncoding e) 174static SupportedEncoding GetSupportedEncoding(Encoding encoding) 189public EncodingStreamWrapper(Stream stream, Encoding encoding, bool emitBOM) 468internal static ArraySegment<byte> ProcessBuffer(byte[] buffer, int offset, int count, Encoding encoding) 489Encoding localEnc; 639byteCount = Encoding.UTF8.GetBytes(chars, 0, charCount, bytes, 0);
System\Xml\XmlBaseReader.cs (1)
1528int ReadBytes(Encoding encoding, int byteBlock, int charBlock, byte[] buffer, int offset, int byteCount, bool readContent)
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\XmlDictionaryReader.cs (12)
110Encoding encoding, 124static public XmlDictionaryReader CreateTextReader(Stream stream, Encoding encoding, 133static public XmlDictionaryReader CreateMtomReader(Stream stream, Encoding encoding, XmlDictionaryReaderQuotas quotas) 138return CreateMtomReader(stream, new Encoding[1] { encoding }, quotas); 141static public XmlDictionaryReader CreateMtomReader(Stream stream, Encoding[] encodings, XmlDictionaryReaderQuotas quotas) 146static public XmlDictionaryReader CreateMtomReader(Stream stream, Encoding[] encodings, string contentType, XmlDictionaryReaderQuotas quotas) 151static public XmlDictionaryReader CreateMtomReader(Stream stream, Encoding[] encodings, string contentType, 159static public XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, Encoding encoding, XmlDictionaryReaderQuotas quotas) 164return CreateMtomReader(buffer, offset, count, new Encoding[1] { encoding }, quotas); 167static public XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, Encoding[] encodings, XmlDictionaryReaderQuotas quotas) 172static public XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, Encoding[] encodings, string contentType, XmlDictionaryReaderQuotas quotas) 177static public XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, Encoding[] encodings, string contentType,
System\Xml\XmlDictionaryString.cs (1)
78buffer = System.Text.Encoding.UTF8.GetBytes(value);
System\Xml\XmlDictionaryWriter.cs (5)
73return CreateTextWriter(stream, Encoding.UTF8, true); 76static public XmlDictionaryWriter CreateTextWriter(Stream stream, Encoding encoding) 81static public XmlDictionaryWriter CreateTextWriter(Stream stream, Encoding encoding, bool ownsStream) 88static public XmlDictionaryWriter CreateMtomWriter(Stream stream, Encoding encoding, int maxSizeInBytes, string startInfo) 93static public XmlDictionaryWriter CreateMtomWriter(Stream stream, Encoding encoding, int maxSizeInBytes, string startInfo, string boundary, string startUri, bool writeMessageHeaders, bool ownsStream)
System\Xml\XmlMtomReader.cs (14)
19void SetInput(byte[] buffer, int offset, int count, Encoding[] encodings, string contentType, XmlDictionaryReaderQuotas quotas, int maxBufferSize, OnXmlDictionaryReaderClose onClose); 20void SetInput(Stream stream, Encoding[] encodings, string contentType, XmlDictionaryReaderQuotas quotas, int maxBufferSize, OnXmlDictionaryReaderClose onClose); 25Encoding[] encodings; 53void SetReadEncodings(Encoding[] encodings) 64this.encodings = new Encoding[encodings.Length]; 74public void SetInput(byte[] buffer, int offset, int count, Encoding[] encodings, string contentType, XmlDictionaryReaderQuotas quotas, int maxBufferSize, OnXmlDictionaryReaderClose onClose) 79public void SetInput(Stream stream, Encoding[] encodings, string contentType, XmlDictionaryReaderQuotas quotas, int maxBufferSize, OnXmlDictionaryReaderClose onClose) 120Encoding encoding = ReadRootContentTypeHeader(infosetPart.Headers.ContentType, this.encodings, startInfo); 170Encoding ReadRootContentTypeHeader(ContentTypeHeader header, Encoding[] expectedEncodings, string expectedType) 183Encoding encoding = null; 199if (String.Compare(expectedEncodings[i].WebName, Encoding.Unicode.WebName, StringComparison.OrdinalIgnoreCase) == 0) 210if (String.Compare(expectedEncodings[i].WebName, Encoding.BigEndianUnicode.WebName, StringComparison.OrdinalIgnoreCase) == 0) 1791content = new StreamReader(s, System.Text.Encoding.ASCII, false, 256).ReadToEnd();
System\Xml\XmlMtomWriter.cs (10)
19void SetOutput(Stream stream, Encoding encoding, int maxSizeInBytes, string startInfo, string boundary, string startUri, bool writeMessageHeaders, bool ownsStream); 31Encoding encoding; 52public void SetOutput(Stream stream, Encoding encoding, int maxSizeInBytes, string startInfo, string boundary, string startUri, bool writeMessageHeaders, bool ownsStream) 145internal static bool IsUTF8Encoding(Encoding encoding) 167static string GetContentTypeForRootMimePart(Encoding encoding, string startInfo) 177static string CharSet(Encoding enc) 180if (String.Compare(name, Encoding.UTF8.WebName, StringComparison.OrdinalIgnoreCase) == 0) 182if (String.Compare(name, Encoding.Unicode.WebName, StringComparison.OrdinalIgnoreCase) == 0) 184if (String.Compare(name, Encoding.BigEndianUnicode.WebName, StringComparison.OrdinalIgnoreCase) == 0) 1014Encoding.ASCII.GetBytes(boundary, 0, boundary.Length, boundaryBytes, MimeGlobals.BoundaryPrefix.Length);
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\XmlStreamNodeWriter.cs (2)
22Encoding encoding; 35protected void SetOutput(Stream stream, bool ownsStream, Encoding encoding)
System\Xml\XmlUTF8TextReader.cs (6)
18void SetInput(byte[] buffer, int offset, int count, Encoding encoding, XmlDictionaryReaderQuotas quotas, OnXmlDictionaryReaderClose onClose); 19void SetInput(Stream stream, Encoding encoding, XmlDictionaryReaderQuotas quotas, OnXmlDictionaryReaderClose onClose); 303public void SetInput(byte[] buffer, int offset, int count, Encoding encoding, XmlDictionaryReaderQuotas quotas, OnXmlDictionaryReaderClose onClose) 321public void SetInput(Stream stream, Encoding encoding, XmlDictionaryReaderQuotas quotas, OnXmlDictionaryReaderClose onClose) 407XmlExceptionHelper.ThrowTokenExpected(this, "?>", Encoding.UTF8.GetString(buffer, offset, 2)); 818XmlExceptionHelper.ThrowTokenExpected(this, "[CDATA[", Encoding.UTF8.GetString(buffer, offset, 7));
System\Xml\XmlUTF8TextWriter.cs (9)
13void SetOutput(Stream stream, Encoding encoding, bool ownsStream); 29public void SetOutput(Stream stream, Encoding encoding, bool ownsStream) 35if (encoding.WebName != Encoding.UTF8.WebName) 72Encoding encoding; 125new public void SetOutput(Stream stream, bool ownsStream, Encoding encoding) 127Encoding utf8Encoding = null; 128if (encoding != null && encoding.CodePage == Encoding.UTF8.CodePage) 138public Encoding Encoding 173if (encoding.WebName == Encoding.BigEndianUnicode.WebName)
System.Security (14)
system\security\cryptography\pkcs\envelopedpkcs7.cs (5)
709byte[] objId = Encoding.ASCII.GetBytes(certInfo.SubjectPublicKeyInfo.Algorithm.pszObjId); 824byte[] objId = Encoding.ASCII.GetBytes(CAPI.szOID_RSA_SMIMEalgESDH); 840objId = Encoding.ASCII.GetBytes(CAPI.szOID_RSA_SMIMEalgCMSRC2wrap); 843objId = Encoding.ASCII.GetBytes(CAPI.szOID_RSA_SMIMEalgCMS3DESwrap); 873objId = Encoding.ASCII.GetBytes(certInfo.SubjectPublicKeyInfo.Algorithm.pszObjId);
system\security\cryptography\pkcs\pkcsutils.cs (3)
266return new Oid(Encoding.ASCII.GetString(contentType)); 437Encoding.Unicode.GetBytes(octetString, 0, octetString.Length, octets, 0); 667Encoding.ASCII.GetBytes(attribute.Oid.Value, 0, attribute.Oid.Value.Length, objId, 0);
system\security\cryptography\x509\x509utils.cs (2)
129Encoding.ASCII.GetBytes(s, 0, s.Length, arr, 0); 268byte[] ansiOid = Encoding.ASCII.GetBytes(oids[index].Value);
system\security\cryptography\xml\encryptedxml.cs (3)
103private Encoding m_encoding; 124m_encoding = Encoding.UTF8; 184public Encoding Encoding {
system\security\cryptography\xml\SignedXmlDebugLog.cs (1)
566Encoding.UTF8.GetString(ms.ToArray()));
System.ServiceModel (122)
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\CorrelationKey.cs (1)
89byte[] keyBytes = Encoding.Unicode.GetBytes(keyString);
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\MtomMessageEncoder.cs (8)
22public MtomMessageEncoderFactory(MessageVersion version, Encoding writeEncoding, int maxReadPoolSize, int maxWritePoolSize, int maxBufferSize, XmlDictionaryReaderQuotas quotas) 60public static Encoding[] GetSupportedEncodings() 62Encoding[] supported = TextEncoderDefaults.SupportedEncodings; 63Encoding[] enc = new Encoding[supported.Length]; 74Encoding writeEncoding; 100public MtomMessageEncoder(MessageVersion version, Encoding writeEncoding, int maxReadPoolSize, int maxWritePoolSize, int maxBufferSize, XmlDictionaryReaderQuotas quotas) 214Encoding tmp;
System\ServiceModel\Channels\MtomMessageEncodingBindingElement.cs (3)
21Encoding writeEncoding; 29public MtomMessageEncodingBindingElement(MessageVersion messageVersion, Encoding writeEncoding) 125public Encoding WriteEncoding
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 (2)
82static Encoding PnrpEncoder 86return System.Text.Encoding.UTF8;
System\ServiceModel\Channels\TextMessageEncoder.cs (18)
26public TextMessageEncoderFactory(MessageVersion version, Encoding writeEncoding, int maxReadPoolSize, int maxWritePoolSize, XmlDictionaryReaderQuotas quotas) 51public static Encoding[] GetSupportedEncodings() 53Encoding[] supported = TextEncoderDefaults.SupportedEncodings; 54Encoding[] enc = new Encoding[supported.Length]; 90internal static string GetContentType(string mediaType, Encoding encoding) 97Encoding[] readEncodings = TextMessageEncoderFactory.GetSupportedEncodings(); 110internal static Encoding GetEncodingFromContentType(string contentType, ContentEncoding[] contentMap) 182Encoding enc; 230internal static bool TryGetEncodingFromCharSet(string charSet, out Encoding encoding) 242internal Encoding encoding; 260Encoding writeEncoding; 269public TextMessageEncoder(MessageVersion version, Encoding writeEncoding, int maxReadPoolSize, int maxWritePoolSize, XmlDictionaryReaderQuotas quotas) 314static bool IsUTF8Encoding(Encoding encoding) 360Encoding tmp; 701XmlReader TakeStreamedReader(Stream stream, Encoding enc) 800Encoding encoding; 812internal Encoding Encoding
System\ServiceModel\Channels\TextMessageEncodingBindingElement.cs (3)
22Encoding writeEncoding; 29public TextMessageEncodingBindingElement(MessageVersion messageVersion, Encoding writeEncoding) 126public Encoding WriteEncoding
System\ServiceModel\Channels\TransportDefaults.cs (18)
56internal static readonly Encoding Encoding = Encoding.GetEncoding(TextEncoderDefaults.EncodingString, new EncoderExceptionFallback(), new DecoderExceptionFallback()); 58internal static readonly Encoding[] SupportedEncodings = new Encoding[] { Encoding.UTF8, Encoding.Unicode, Encoding.BigEndianUnicode }; 62new CharSetEncoding("utf-8", Encoding.UTF8), 63new CharSetEncoding("utf-16LE", Encoding.Unicode), 64new CharSetEncoding("utf-16BE", Encoding.BigEndianUnicode), 69internal static void ValidateEncoding(Encoding encoding) 72Encoding[] supportedEncodings = SupportedEncodings; 81internal static string EncodingToCharSet(Encoding encoding) 87Encoding enc = charSetEncodings[i].Encoding; 97internal static bool TryGetEncoding(string charSet, out Encoding encoding) 132internal Encoding Encoding; 134internal CharSetEncoding(string charSet, Encoding enc) 473internal static Encoding TextEncoding
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\EncodingConverter.cs (5)
40Encoding retval; 48retval = Encoding.GetEncoding(encoding); 61if (typeof(string) == destinationType && value is Encoding) 63Encoding encoding = (Encoding)value;
System\ServiceModel\Configuration\HttpBindingBaseElement.cs (2)
89public Encoding TextEncoding 91get { return (Encoding)base[ConfigurationStrings.TextEncoding]; }
System\ServiceModel\Configuration\IssuedTokenParametersElement.cs (1)
293using (XmlTextWriter commentWriter = new XmlTextWriter(memoryStream, Encoding.UTF8))
System\ServiceModel\Configuration\MtomMessageEncodingElement.cs (2)
109public Encoding WriteEncoding 111get { return (Encoding)base[ConfigurationStrings.WriteEncoding]; }
System\ServiceModel\Configuration\Properties.cs (5)
1260properties.Add(new ConfigurationProperty("textEncoding", typeof(System.Text.Encoding), "utf-8", new System.ServiceModel.Configuration.EncodingConverter(), null, System.Configuration.ConfigurationPropertyOptions.None)); 2009properties.Add(new ConfigurationProperty("writeEncoding", typeof(System.Text.Encoding), "utf-8", new System.ServiceModel.Configuration.EncodingConverter(), null, System.Configuration.ConfigurationPropertyOptions.None)); 2738properties.Add(new ConfigurationProperty("textEncoding", typeof(System.Text.Encoding), "utf-8", new System.ServiceModel.Configuration.EncodingConverter(), null, System.Configuration.ConfigurationPropertyOptions.None)); 3558properties.Add(new ConfigurationProperty("writeEncoding", typeof(System.Text.Encoding), "utf-8", new System.ServiceModel.Configuration.EncodingConverter(), null, System.Configuration.ConfigurationPropertyOptions.None)); 3794properties.Add(new ConfigurationProperty("textEncoding", typeof(System.Text.Encoding), "utf-8", new System.ServiceModel.Configuration.EncodingConverter(), null, System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Configuration\TextMessageEncodingElement.cs (2)
98public Encoding WriteEncoding 100get { return (Encoding)base[ConfigurationStrings.WriteEncoding]; }
System\ServiceModel\Configuration\WSDualHttpBindingElement.cs (2)
112public Encoding TextEncoding 114get { return (Encoding)base[ConfigurationStrings.TextEncoding]; }
System\ServiceModel\Configuration\WSHttpBindingBaseElement.cs (2)
94public Encoding TextEncoding 96get { return (Encoding)base[ConfigurationStrings.TextEncoding]; }
System\ServiceModel\Description\MetadataExchangeClient.cs (6)
1315internal static Encoding GetRfcEncoding(string contentTypeStr) 1317Encoding e = null; 1325e = Encoding.GetEncoding(charset); 1347internal static Encoding GetDictionaryReaderEncoding(string contentTypeStr) 1352Encoding encoding = GetRfcEncoding(contentTypeStr); 1358Encoding[] supportedEncodings = TextEncoderDefaults.SupportedEncodings;
System\ServiceModel\Diagnostics\MessageLogTraceRecord.cs (1)
56this.messageString = System.Text.Encoding.UTF8.GetString(buffer.Array, buffer.Offset, buffer.Count);
System\ServiceModel\HttpBindingBase.cs (1)
179public Encoding TextEncoding
System\ServiceModel\MsmqIntegration\ActiveXSerializer.cs (4)
70System.Text.Encoding.ASCII.GetChars(bytes, 0, size, buffer, 0); 89System.Text.Encoding.Unicode.GetChars(bytes, 0, size * 2, buffer, 0); 251System.Text.Encoding.Unicode.GetBytes(((string)obj).ToCharArray(), 0, size / 2, buffer, 0); 278System.Text.Encoding.Unicode.GetBytes(chars, 0, size / 2, buffer, 0);
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\Tokens\WindowsUserNameCachingSecurityTokenAuthenticator.cs (1)
132return hmac.ComputeHash(Encoding.Unicode.GetBytes(password));
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\WhereaboutsReader.cs (1)
154this.hostName = Encoding.Unicode.GetString(chars, 0, cbString);
System\ServiceModel\Transactions\WsatProxy.cs (1)
431byte[] descriptionBytes = Encoding.UTF8.GetBytes(description);
System\ServiceModel\WSDualHttpBinding.cs (1)
173public System.Text.Encoding TextEncoding
System\ServiceModel\WSHttpBindingBase.cs (1)
156public System.Text.Encoding TextEncoding
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.Activation (1)
System\ServiceModel\Activation\Interop\SafeHGlobalHandleCritical.cs (1)
47Encoding.Unicode.GetBytes(s, 0, s.Length, bytes, 0);
System.ServiceModel.Channels (4)
System\ServiceModel\Configuration\Properties.cs (1)
45properties.Add(new ConfigurationProperty("textEncoding", typeof(System.Text.Encoding), "utf-8", new System.ServiceModel.Configuration.EncodingConverter(), null, System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Configuration\UdpBindingElement.cs (2)
89public Encoding TextEncoding 91get { return (Encoding)base[UdpTransportConfigurationStrings.TextEncoding]; }
System\ServiceModel\UdpBinding.cs (1)
148public Encoding TextEncoding
System.ServiceModel.Internals (16)
System\Runtime\UrlUtility.cs (16)
18return ParseQueryString(query, Encoding.UTF8); 21public static NameValueCollection ParseQueryString(string query, Encoding encoding) 47return UrlEncode(str, Encoding.UTF8); 66return UrlEncodeSpaces(UrlEncodeNonAscii(str, Encoding.UTF8)); 69public static string UrlEncode(string str, Encoding encoding) 75return Encoding.ASCII.GetString(UrlEncodeToBytes(str, encoding)); 126static string UrlEncodeNonAscii(string str, Encoding e) 134e = Encoding.UTF8; 138return Encoding.ASCII.GetString(bytes); 151public static byte[] UrlEncodeToBytes(string str, Encoding e) 168public static string UrlDecode(string str, Encoding e) 280static string UrlDecodeStringFromStringInternal(string s, Encoding e) 408Encoding _encoding; 419internal UrlDecoder(int bufferSize, Encoding encoding) 479internal HttpValueCollection(string str, Encoding encoding) 495internal void FillFromString(string s, bool urlencoded, Encoding encoding)
System.ServiceModel.Web (61)
System\ServiceModel\Channels\JavascriptXmlWriterWrapper.cs (2)
14Encoding encoding; 19public JavascriptXmlWriterWrapper(Encoding encoding)
System\ServiceModel\Channels\JsonMessageEncoderFactory.cs (8)
25public JsonMessageEncoderFactory(Encoding writeEncoding, int maxReadPoolSize, int maxWritePoolSize, XmlDictionaryReaderQuotas quotas, bool crossDomainScriptAccessEnabled) 54Encoding[] readEncodings = TextMessageEncoderFactory.GetSupportedEncodings(); 85Encoding writeEncoding; 89public JsonMessageEncoder(Encoding writeEncoding, int maxReadPoolSize, int maxWritePoolSize, XmlDictionaryReaderQuotas quotas, bool crossDomainScriptAccessEnabled) 362Encoding tmp; 432XmlDictionaryReader TakeStreamedReader(Stream stream, Encoding enc) 482Encoding encoding; 505internal Encoding Encoding
System\ServiceModel\Channels\WebMessageEncoderFactory.cs (5)
20public WebMessageEncoderFactory(Encoding writeEncoding, int maxReadPoolSize, int maxWritePoolSize, XmlDictionaryReaderQuotas quotas, WebContentTypeMapper contentTypeMapper, bool javascriptCallbackEnabled) 35internal static string GetContentType(string mediaType, Encoding encoding) 63Encoding writeEncoding; 66public WebMessageEncoder(Encoding writeEncoding, int maxReadPoolSize, int maxWritePoolSize, XmlDictionaryReaderQuotas quotas, WebContentTypeMapper contentTypeMapper, bool javascriptCallbackEnabled) 354Encoding tmp;
System\ServiceModel\Channels\WebMessageEncodingBindingElement.cs (3)
20Encoding writeEncoding; 27public WebMessageEncodingBindingElement(Encoding writeEncoding) 133public Encoding WriteEncoding
System\ServiceModel\Channels\WebScriptMetadataMessageEncoderFactory.cs (1)
47this.innerReadMessageEncoder = new TextMessageEncodingBindingElement(MessageVersion.None, Encoding.UTF8).CreateMessageEncoderFactory().Encoder;
System\ServiceModel\Configuration\WebEncodingValidator.cs (6)
16return type == typeof(Encoding); 21Encoding encoding = value as Encoding; 24((encoding.WebName != Encoding.UTF8.WebName) && 25(encoding.WebName != Encoding.Unicode.WebName) && 26(encoding.WebName != Encoding.BigEndianUnicode.WebName)))
System\ServiceModel\Configuration\WebHttpBindingElement.cs (3)
118public Encoding WriteEncoding 120get { return (Encoding)base[ConfigurationStrings.WriteEncoding]; } 170properties.Add(new ConfigurationProperty("writeEncoding", typeof(System.Text.Encoding), "utf-8", new System.ServiceModel.Configuration.EncodingConverter(), null, System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Configuration\WebHttpEndpointElement.cs (3)
90public Encoding WriteEncoding 92get { return (Encoding)base[ConfigurationStrings.WriteEncoding]; } 160properties.Add(new ConfigurationProperty(ConfigurationStrings.WriteEncoding, typeof(System.Text.Encoding), "utf-8", new System.ServiceModel.Configuration.EncodingConverter(), null, System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Configuration\WebMessageEncodingElement.cs (2)
72public Encoding WriteEncoding 74get { return (Encoding) base[ConfigurationStrings.WriteEncoding]; }
System\ServiceModel\Configuration\WebScriptEndpointElement.cs (3)
90public Encoding WriteEncoding 92get { return (Encoding)base[ConfigurationStrings.WriteEncoding]; } 131properties.Add(new ConfigurationProperty(ConfigurationStrings.WriteEncoding, typeof(System.Text.Encoding), "utf-8", new System.ServiceModel.Configuration.EncodingConverter(), null, System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Description\WebServiceEndpoint.cs (1)
61public Encoding WriteEncoding
System\ServiceModel\Dispatcher\HelpHtmlBuilder.cs (2)
388writer.SetOutput(stream, Encoding.Unicode, false); 392sample.Append(new StreamReader(stream, Encoding.Unicode).ReadToEnd());
System\ServiceModel\Dispatcher\JsonFormatMapping.cs (3)
18static Dictionary<Encoding, MessageEncoder> encoders = new Dictionary<Encoding, MessageEncoder>(); 21public JsonFormatMapping(Encoding writeEncoding, WebContentTypeMapper contentTypeMapper)
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\Dispatcher\MultiplexingFormatMapping.cs (2)
13protected Encoding writeEncoding; 36public MultiplexingFormatMapping(Encoding writeEncoding, WebContentTypeMapper contentTypeMapper)
System\ServiceModel\Dispatcher\XmlFormatMapping.cs (3)
17static Dictionary<Encoding, MessageEncoder> encoders = new Dictionary<Encoding, MessageEncoder>(); 20public XmlFormatMapping(Encoding writeEncoding, WebContentTypeMapper contentTypeMapper)
System\ServiceModel\Web\OutgoingWebResponseContext.cs (2)
23Encoding bindingWriteEncoding = null; 154public Encoding BindingWriteEncoding
System\ServiceModel\Web\WebOperationContext.cs (7)
214return CreateTextResponse(text, WebOperationContext.DefaultTextMediaType, Encoding.UTF8); 219return CreateTextResponse(text, contentType, Encoding.UTF8); 222public Message CreateTextResponse(string text, string contentType, Encoding encoding) 255Encoding encoding = this.OutgoingResponse.BindingWriteEncoding; 258encoding = Encoding.UTF8; 263public Message CreateTextResponse(Action<TextWriter> textWriter, string contentType, Encoding encoding) 354void AddContentType(string contentType, Encoding encoding)
System\ServiceModel\WebHttpBinding.cs (1)
171public Encoding WriteEncoding
System.Web (216)
Abstractions\HttpRequestBase.cs (1)
67public virtual Encoding ContentEncoding {
Abstractions\HttpRequestWrapper.cs (1)
101public override Encoding ContentEncoding {
Abstractions\HttpResponseBase.cs (2)
72public virtual Encoding ContentEncoding { 135public virtual Encoding HeaderEncoding {
Abstractions\HttpResponseWrapper.cs (2)
78public override Encoding ContentEncoding { 141public override Encoding HeaderEncoding {
Compilation\AssemblyBuilder.cs (2)
242return new StreamWriter(temp, Encoding.UTF8); 1299return new StreamWriter(temp, Encoding.UTF8);
Compilation\BuildManager.cs (3)
2626using (StreamWriter writer = new StreamWriter(precompMarkerFile, false /*append*/, Encoding.UTF8)) { 2752internal static TextWriter GetUpdatableDeploymentTargetWriter(VirtualPath virtualPath, Encoding fileEncoding) { 3009Encoding encoding = Util.GetEncodingFromConfigPath(vfile.VirtualPathObject);
Compilation\BuildManagerHost.cs (1)
703StreamWriter writer = new StreamWriter(stream, Encoding.Unicode);
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 (27)
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); 60private Encoding responseEncodingCache = null; 61private Encoding responseHeaderEncodingCache = null; 62private Encoding requestEncodingCache = null; 63private Encoding fileEncodingCache = null; 93public Encoding RequestEncoding { 96requestEncodingCache = Encoding.UTF8; 107requestEncodingCache = Encoding.UTF8; 113public Encoding ResponseEncoding { 116responseEncodingCache = Encoding.UTF8; 126responseEncodingCache = Encoding.UTF8; 132public Encoding ResponseHeaderEncoding { 135responseHeaderEncodingCache = Encoding.UTF8; 146responseHeaderEncodingCache = Encoding.UTF8; 152public Encoding FileEncoding { 155fileEncodingCache = Encoding.Default; 166fileEncodingCache = Encoding.Default; 271responseEncodingCache = (Encoding)Encoding.GetEncoding((string)base[_propResponseEncoding]); 280responseHeaderEncodingCache = (Encoding)Encoding.GetEncoding((string)base[_propResponseHeaderEncoding]); 292requestEncodingCache = (Encoding)Encoding.GetEncoding((string)base[_propRequestEncoding]); 304fileEncodingCache = (Encoding)Encoding.GetEncoding((string)base[_propFileEncoding]);
Configuration\HttpRuntimeSection.cs (2)
842string[] stringsDecoded = HttpUtility.UrlDecode(invalidCharString, Encoding.UTF8).Split(','); 866string decodedString = HttpUtility.UrlDecode(stringsToDecode[iter], Encoding.UTF8).Trim();
Configuration\IdentitySection.cs (1)
237byte[] bIn1 = System.Text.Encoding.Unicode.GetBytes(name + "\t" + password);
Configuration\MachineKeySection.cs (1)
737ab = Encoding.Unicode.GetBytes(s);
ErrorFormatter.cs (8)
1001return FormatterWithFileInfo.GetSourceFileLines(_physicalPath, Encoding.Default, null, _line); 1443internal static string GetSourceFileLines(string fileName, Encoding encoding, string sourceCode, int lineNumber) { 1561protected virtual Encoding SourceFileEncoding { 1562get { return Encoding.Default; } 1675sb.Append(FormatterWithFileInfo.GetSourceFileLines(e.FileName, Encoding.Default, _excep.SourceCodeWithoutDemand, e.Line)); 1732sb.Append(FormatterWithFileInfo.GetSourceFileLines(e.FileName, Encoding.Default, _excep.SourceCodeWithoutDemand, e.Line)); 1869protected override Encoding SourceFileEncoding { 1870get { return Encoding.UTF8; }
Hosting\ApplicationManager.cs (1)
1458StreamReader reader = new StreamReader(file, Encoding.UTF8);
Hosting\IIS7WorkerRequest.cs (3)
46private Encoding _headerEncoding = Encoding.UTF8; 802internal override void SetHeaderEncoding(Encoding encoding) {
Hosting\ISAPIWorkerRequest.cs (14)
93s_ByteBufferAllocator = new UbyteBufferAllocator(Encoding.UTF8.GetMaxByteCount(BUFFER_SIZE), MAX_FREE_BUFFERS); 152return GetEncodedBytesBuffer(Encoding.UTF8); 155internal byte[] GetEncodedBytesBuffer(Encoding encoding) { 160encoding = Encoding.UTF8; 279private char[] GetDecodedCharBuffer(Encoding encoding, ref int len) { 298internal string GetDecodedString(Encoding encoding, int len) { 302internal String[] GetDecodedTabSeparatedStrings(Encoding encoding, int numStrings, int numSkipStrings) { 645private Encoding _headerEncoding; 704String[] ss = buf.GetDecodedTabSeparatedStrings(Encoding.Default, 6, 0); 1288internal override void SetHeaderEncoding(Encoding encoding) { 1852value = buf.GetDecodedString(Encoding.UTF8, retVal); 1884_additionalServerVars[i] = buf.GetDecodedString(Encoding.UTF8, retVal); 2851String[] ss = buf.GetDecodedTabSeparatedStrings(Encoding.Default, _numServerVars-1, 1); 2926byte[] nameBytes = Encoding.Unicode.GetBytes(filename);
Hosting\SimpleWorkerRequest.cs (1)
294_output.Write(System.Text.Encoding.Default.GetChars(data, 0, length));
HttpCachePolicy.cs (1)
746_etag = Convert.ToBase64String(CryptoUtil.ComputeSHA256Hash(Encoding.UTF8.GetBytes(sb.ToString())));
HttpClientCertificate.cs (3)
221return System.Text.Encoding.Default.GetString(Certificate); 224return System.Text.Encoding.Default.GetString(BinaryIssuer); 227return System.Text.Encoding.Default.GetString(PublicKey);
HttpDebugHandler.cs (1)
209HttpValueCollection valCol = new HttpValueCollection(s, true, true, Encoding.UTF8);
HttpRequest.cs (13)
124private Encoding _encoding; 189_queryString = new HttpValueCollection(_queryStringText, true, true, Encoding.Default); 202_queryString = new HttpValueCollection(_queryStringText, true, true, Encoding.Default); 905private Encoding GetEncodingFromHeaders() { 911return Encoding.GetEncoding(postDataCharset); 933Encoding encoding = null; 936encoding = Encoding.GetEncoding(charSet); 1115return Encoding.ASCII.GetBytes(b.ToCharArray()); 1316public Encoding ContentEncoding { 1346internal Encoding QueryStringEncoding { 1348Encoding e = ContentEncoding; 1350return e.Equals(Encoding.Unicode) ? Encoding.UTF8 : e;
HttpResponse.cs (16)
70private Encoding _encoding; 72private Encoding _headerEncoding; // encoding for response headers, default utf-8 533Debug.Assert(!this.HeaderEncoding.Equals(Encoding.Unicode)); 677byte[] chunkPrefix = Encoding.ASCII.GetBytes(Convert.ToString(bufferedLength, 16) + "\r\n"); 1702public Encoding ContentEncoding { 1711_encoding = Encoding.Default; 1732public Encoding HeaderEncoding { 1741if (_headerEncoding == null || _headerEncoding.Equals(Encoding.Unicode)) 1742_headerEncoding = Encoding.UTF8; 1752if (value.Equals(Encoding.Unicode)) { 1769Encoding e = ContentEncoding; 1775if (!e.Equals(Encoding.UTF8)) { 2700_writer.Write(Encoding.Default.GetChars(fileBytes, 0, bytesRead)); 3329return schemeAndAuthority + HttpEncoderUtility.UrlEncodeSpaces(HttpUtility.UrlEncodeNonAscii(path, Encoding.UTF8)) + queryAndFragment; 3333return HttpEncoderUtility.UrlEncodeSpaces(HttpUtility.UrlEncodeNonAscii(url, Encoding.UTF8)); 3344Encoding qsEncoding = (Request != null) ? Request.ContentEncoding : ContentEncoding;
HttpRuntime.cs (3)
1630byte[] body = Encoding.ASCII.GetBytes("<html><body>Server Too Busy</body></html>"); 1653byte[] body = Encoding.ASCII.GetBytes("<html><body>Bad Request</body></html>"); 3244StreamReader reader = new StreamReader(file, Encoding.UTF8);
httpserverutility.cs (21)
985Encoding e = (_context != null) ? _context.Response.ContentEncoding : Encoding.UTF8; 1019Encoding e = (_context != null) ? _context.Request.ContentEncoding : Encoding.UTF8; 1277return ParseQueryString(query, Encoding.UTF8); 1280public static NameValueCollection ParseQueryString(string query, Encoding encoding) { 1313return UrlEncode(str, Encoding.UTF8); 1343public static string UrlEncode(string str, Encoding e) { 1346return Encoding.ASCII.GetString(UrlEncodeToBytes(str, e)); 1350internal static String UrlEncodeNonAscii(string str, Encoding e) { 1360return Encoding.ASCII.GetString(UrlEncodeToBytes(bytes)); 1370return Encoding.ASCII.GetString(UrlEncodeToBytes(bytes, offset, count)); 1380return UrlEncodeToBytes(str, Encoding.UTF8); 1387public static byte[] UrlEncodeToBytes(string str, Encoding e) { 1429return Encoding.ASCII.GetBytes(UrlEncodeUnicode(str)); 1439return UrlDecode(str, Encoding.UTF8); 1446public static string UrlDecode(string str, Encoding e) { 1454public static string UrlDecode(byte[] bytes, Encoding e) { 1464public static string UrlDecode(byte[] bytes, int offset, int count, Encoding e) { 1475return UrlDecodeToBytes(str, Encoding.UTF8); 1482public static byte[] UrlDecodeToBytes(string str, Encoding e) {
HttpValueCollection.cs (3)
55internal HttpValueCollection(String str, bool readOnly, bool urlencoded, Encoding encoding): base(StringComparer.OrdinalIgnoreCase) { 159internal void FillFromString(String s, bool urlencoded, Encoding encoding) { 216internal void FillFromEncodedBytes(byte[] bytes, Encoding encoding) {
HttpWriter.cs (4)
537internal HttpSubstBlockResponseElement(HttpResponseSubstitutionCallback callback, Encoding encoding, Encoder encoder, IIS7WorkerRequest iis7WorkerRequest) { 589internal IHttpResponseElement Substitute(Encoding e) { 805private Encoding _responseEncoding; 881public override Encoding Encoding {
MultipartContentParser.cs (4)
59internal String GetAsString(Encoding encoding) { 99private Encoding _encoding; 102private HttpMultipartContentTemplateParser(HttpRawUploadedContent data, int length, byte[] boundary, Encoding encoding) { 310internal static MultipartContentElement[] Parse(HttpRawUploadedContent data, int length, byte[] boundary, Encoding encoding) {
Security\ADMembershipProvider.cs (2)
3400byte[] bIn = Encoding.Unicode.GetBytes(clearTextString); 3421return Encoding.Unicode.GetString(bAll, AD_SALT_SIZE_IN_BYTES, bAll.Length - AD_SALT_SIZE_IN_BYTES);
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 (12)
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); 103return UrlEncode(input, Encoding.GetEncoding(codePage)); 109return HtmlFormUrlEncode(input, Encoding.GetEncoding(codePage)); 114public static string UrlEncode(string input, Encoding inputEncoding) { 117inputEncoding = Encoding.UTF8; 125public static string HtmlFormUrlEncode(string input, Encoding inputEncoding) { 128inputEncoding = Encoding.UTF8;
Security\AntiXss\HtmlParameterEncoder.cs (5)
59internal static string QueryStringParameterEncode(string s, Encoding encoding) { 74internal static string FormStringParameterEncode(string s, Encoding encoding) { 85private static string FormQueryEncode(string s, Encoding encoding, EncodingType encodingType) { 89private static string FormQueryEncode(string s, Encoding encoding, EncodingType encodingType, Lazy<char[][]> characterValuesLazy) { 195internal static string UrlPathEncode(string s, Encoding encoding) {
Security\FormsAuthentication.cs (1)
76return CryptoUtil.BinaryToHex(hashAlgorithm.ComputeHash(Encoding.UTF8.GetBytes(password)));
Security\SQLMembershipProvider.cs (2)
1905byte[] bIn = Encoding.Unicode.GetBytes(pass); 1962return Encoding.Unicode.GetString(bRet, SALT_SIZE, bRet.Length - SALT_SIZE);
State\OutOfProcStateClientManager.cs (1)
108string idHash = Convert.ToBase64String(CryptoUtil.ComputeSHA256Hash(Encoding.UTF8.GetBytes(appId)));
State\SessionStateContainer.cs (2)
191return Encoding.Default.CodePage; 195HttpContext.Current.Response.ContentEncoding = Encoding.GetEncoding(value);
StringResourceManager.cs (4)
28return new String((sbyte *)pv, offset, size, Encoding.UTF8); 100size = Encoding.UTF8.GetByteCount(s); 118Encoding encoding = Encoding.UTF8;
UI\CssTextWriter.cs (1)
85public override Encoding Encoding {
UI\HTMLTextWriter.cs (2)
289public override Encoding Encoding { 1308Write(HttpUtility.UrlEncodeNonAscii(Char.ToString(ch), Encoding.UTF8));
UI\LOSFormatter.cs (1)
59return Encoding.Unicode.GetBytes(s);
UI\ObjectStateFormatter.cs (2)
227int count = Encoding.Unicode.GetByteCount(viewStateUserKey); 229Encoding.Unicode.GetBytes(viewStateUserKey, 0, viewStateUserKey.Length, _macKeyBytes, 4);
UI\Page.cs (6)
1863return Encoding.UTF8.GetString(clearData); 2009byte[] clearData = Encoding.UTF8.GetBytes(s); 3829set { Response.ContentEncoding = Encoding.GetEncoding(value); } 3838set { Response.ContentEncoding = Encoding.GetEncoding(value); } 5598_response.ContentEncoding = Encoding.GetEncoding(preferredResponseEncoding); 5602_request.ContentEncoding = Encoding.GetEncoding(preferredRequestEncoding);
UI\PageParser.cs (2)
433Encoding.GetEncoding(_responseEncoding); 445Encoding.GetEncoding(_codePage);
UI\PageThemeParser.cs (1)
146ParseString(Text, CurrentVirtualPath, Encoding.UTF8);
UI\TemplateParser.cs (4)
704ParseString(_text, CurrentVirtualPath, Encoding.UTF8); 801internal void ParseString(string text, VirtualPath virtualPath, Encoding fileEncoding) { 946private void ParseStringInternal(string text, Encoding fileEncoding) { 1162ParsedAttributeCollection mainDirective, Encoding fileEncoding) {
UI\Util.cs (9)
164internal static Encoding GetEncodingFromConfigPath(VirtualPath configPath) { 169Encoding fileEncoding = null; 175fileEncoding = Encoding.Default; 189Encoding fileEncoding = Encoding.Default; 346Encoding fileEncoding = GetEncodingFromConfigPath(configPath); 369Encoding encoding = Encoding.Default; 376internal /*public*/ static String StringFromFile(string path, ref Encoding encoding) {
Util\HttpEncoder.cs (9)
98internal static string CollapsePercentUFromStringInternal(string s, Encoding e) { 498internal string UrlDecode(byte[] bytes, int offset, int count, Encoding encoding) { 551internal string UrlDecode(string value, Encoding encoding) { 673internal String UrlEncodeNonAscii(string str, Encoding e) { 677e = Encoding.UTF8; 680return Encoding.ASCII.GetString(encodedBytes); 801return HttpEncoderUtility.UrlEncodeSpaces(UrlEncodeNonAscii(value, Encoding.UTF8)); 943private Encoding _encoding; 952internal UrlDecoder(int bufferSize, Encoding encoding) {
Util\SmtpMail.cs (3)
644Encoding bodyEncoding = Encoding.Default; 771public Encoding BodyEncoding {
Util\StringUtil.cs (1)
320internal static int GetNullTerminatedByteArray(Encoding enc, string s, out byte[] bytes)
WebSockets\AspNetWebSocket.cs (1)
505int byteCount = Encoding.UTF8.GetByteCount(statusDescription);
WorkerRequest.cs (1)
935internal virtual void SetHeaderEncoding(Encoding encoding) {
System.Web.DataVisualization (4)
WebForm\General\ChartHttpHandler.cs (4)
204byte[] data = System.Text.Encoding.UTF8.GetBytes("chart io controller file"); 1469byte[] data = Encoding.UTF8.GetBytes(sessionID + "/" + currentGuid); 1637Encoding.Unicode.GetString(privacyMarkerStream), 1638Encoding.Unicode.GetString(_privacyMarker),
System.Web.Extensions (10)
ClientServices\Providers\ClientFormsAuthenticationMembershipProvider.cs (1)
551byte [] bufPass = Encoding.Unicode.GetBytes(password);
ClientServices\Providers\ProxyHelper.cs (2)
134return Encoding.UTF8.GetBytes(sb.ToString()); 142using (StreamReader readStream = new StreamReader(s, Encoding.UTF8)) {
Handlers\ScriptResourceHandler.cs (4)
226internal delegate string VirtualFileReader(string virtualPath, out Encoding encoding); 299fileReader = fileReader ?? new VirtualFileReader(delegate(string virtualPath, out Encoding encoding) { 447Encoding encoding; 519using (StreamWriter writer = new StreamWriter(outputStream, Encoding.UTF8)) {
HttpResponseInternalWrapper.cs (2)
101public override Encoding ContentEncoding { 140public override Encoding HeaderEncoding {
Script\Services\ServicesUtilities.cs (1)
116using (XmlTextWriter writer = new XmlTextWriter(ms, Encoding.UTF8)) {
System.Web.Mobile (8)
UI\MobileControls\Adapters\EmptyTextWriter.cs (2)
326public override Encoding Encoding 330return Encoding.UTF8;
UI\MobileControls\Adapters\HtmlPageAdapter.cs (2)
405context.Response.ContentEncoding = Encoding.GetEncoding(preferredResponseEncoding); 409context.Request.ContentEncoding = Encoding.GetEncoding(preferredRequestEncoding);
UI\MobileControls\Adapters\WmlPageAdapter.cs (2)
451private static readonly Encoding UTF8Encoding = Encoding.GetEncoding("UTF-8");
UI\MobileControls\MobilePage.cs (2)
1459int count = Encoding.Unicode.GetByteCount(ViewStateUserKey); 1461Encoding.Unicode.GetBytes(ViewStateUserKey,0, ViewStateUserKey.Length, macKeyModifier, 4);
System.Web.Services (37)
System\Web\Services\Description\ServiceDescription.cs (1)
348StreamReader reader = new StreamReader(fileName, Encoding.Default, true);
System\Web\Services\Discovery\DiscoveryRequestHandler.cs (1)
108context.Response.ContentType = ContentType.Compose("text/xml", Encoding.UTF8);
System\Web\Services\Protocols\ClientProtocol.cs (2)
65private Encoding requestEncoding; 198public Encoding RequestEncoding {
System\Web\Services\Protocols\DiscoveryServerProtocol.cs (2)
269Encoding encoding = new UTF8Encoding(false); 341Response.ContentType = ContentType.Compose("text/plain", Encoding.UTF8);
System\Web\Services\Protocols\HttpServerProtocol.cs (3)
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\MimeParameterWriter.cs (1)
29public virtual Encoding RequestEncoding {
System\Web\Services\Protocols\RequestResponse.cs (8)
41internal static Encoding GetEncoding(string contentType) 44Encoding e = null; 48e = Encoding.GetEncoding(charset); 62internal static Encoding GetEncoding2(string contentType) 69Encoding e = null; 73e = Encoding.GetEncoding(charset); 94Encoding e = GetEncoding(response.ContentType); 95if (e == null) e = Encoding.Default;
System\Web\Services\Protocols\Scalars.cs (5)
83internal static string EscapeString(string s, Encoding e) { 87internal static string UrlEscapeString(string s, Encoding e) { 91private static string EscapeStringInternal(string s, Encoding e, bool escapeUriStuff) { 269internal static string Compose(string contentType, Encoding encoding) { 273internal static string Compose(string contentType, Encoding encoding, string action) {
System\Web\Services\Protocols\SoapClientProtocol.cs (4)
265Encoding enc = message.SoapVersion == SoapProtocolVersion.Soap12 ? RequestResponseUtils.GetEncoding2(message.ContentType) : RequestResponseUtils.GetEncoding(message.ContentType); 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 (5)
272Encoding enc = RequestResponseUtils.GetEncoding2(message.ContentType); 677message.ContentType = ContentType.Compose(helper.HttpContentType, Encoding.UTF8); 765message.ContentType = ContentType.Compose(helper.HttpContentType, Encoding.UTF8); 814Response.ContentType = ContentType.Compose(ContentType.TextPlain, Encoding.UTF8); 857Encoding enc = RequestResponseUtils.GetEncoding2(Message.ContentType);
System\Web\Services\Protocols\UrlEncodedParameterWriter.cs (2)
23Encoding encoding; 26public override Encoding RequestEncoding {
System\Web\Services\Protocols\XmlReturnReader.cs (1)
118Encoding e = RequestResponseUtils.GetEncoding(response.ContentType);
System\Web\Services\Protocols\XmlReturnWriter.cs (1)
33Encoding encoding = new UTF8Encoding(false);
System.Windows.Forms (54)
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\ResXDataNode.cs (2)
281fileRef = new ResXFileRef(FileRefFullPath, FileRefType, Encoding.GetEncoding(FileRefTextEncoding)); 679fileRef = new ResXFileRef(FileRefFullPath, FileRefType, Encoding.GetEncoding(FileRefTextEncoding));
winforms\Managed\System\Resources\ResXFileRef.cs (6)
47private Encoding textFileEncoding; 83public ResXFileRef(string fileName, string typeName, Encoding textFileEncoding) : this(fileName, typeName) { 116public Encoding TextFileEncoding { 294Encoding textFileEncoding = Encoding.Default; 296textFileEncoding = Encoding.GetEncoding(parts[2]);
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\Application.cs (1)
1645return Encoding.Unicode.GetString(bytes, 0, length - 2);
winforms\Managed\System\WinForms\Control.cs (5)
45using Encoding = System.Text.Encoding; 7880bytes = Encoding.Default.GetBytes(value); 7881nullBytes = Encoding.Default.GetBytes(nullChar); 7884bytes = Encoding.Unicode.GetBytes(value); 7885nullBytes = Encoding.Unicode.GetBytes(nullChar);
winforms\Managed\System\WinForms\Control.Ime.cs (1)
39using Encoding = System.Text.Encoding;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (8)
8216byte[] sourceBytes = Encoding.Unicode.GetBytes(sbContent.ToString()); 8217byte[] destinationBytes = Encoding.Convert(Encoding.Unicode, Encoding.UTF8, sourceBytes); 8227sourceBytes = Encoding.Unicode.GetBytes(sbContent.ToString()); 8228destinationBytes = Encoding.Convert(Encoding.Unicode, Encoding.UTF8, sourceBytes);
winforms\Managed\System\WinForms\DataObject.cs (1)
1899stringData = Encoding.UTF8.GetString(bytes);
winforms\Managed\System\WinForms\FileDialog.cs (1)
24using Encoding = System.Text.Encoding;
winforms\Managed\System\WinForms\ListView.cs (2)
6070byte[] buff = System.Text.Encoding.Default.GetBytes(text + "\0"); 6155byte[] byteBuf = System.Text.Encoding.Default.GetBytes(lvi.ToolTipText + "\0");
winforms\Managed\System\WinForms\RichTextBox.cs (8)
2285string fontName = Encoding.Default.GetString(cf.szFaceName); 2902bytesFaceName = Encoding.Default.GetBytes(logfont.lfFaceName); 2916bytesFaceName = Encoding.Unicode.GetBytes(logfont.lfFaceName); 3001encodedBytes = Encoding.Unicode.GetBytes(str); 3004encodedBytes = Encoding.Default.GetBytes(str); 3031string str = Encoding.Default.GetString(bytes); 3118result = Encoding.Unicode.GetString(bytes,0 , bytes.Length); 3121result = Encoding.Default.GetString(bytes, 0, bytes.Length);
winforms\Managed\System\WinForms\TextBoxBase.cs (4)
2074Encoding e = Encoding.Default; 2116Encoding e = Encoding.Default;
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (2)
6554string result = Encoding.Default.GetString(buffer, offset, i - offset); 6569byte[] bytes = Encoding.Default.GetBytes(s);
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.Xml (77)
System\Xml\BinaryXml\XmlBinaryReader.cs (8)
308Encoding unicode; 314unicode = System.Text.Encoding.Unicode; 3542Encoding enc = System.Text.Encoding.GetEncoding( codepage ); 3678Encoding enc = System.Text.Encoding.GetEncoding(codepage); 3840Encoding enc = System.Text.Encoding.GetEncoding(codepage);
System\Xml\Core\XmlEncodedRawTextWriter.cs (2)
50protected Encoding encoding; 177this.encoding = (Encoding)settings.Encoding.Clone();
System\Xml\Core\XmlParserContext.cs (4)
25private Encoding _encoding = null; 33public XmlParserContext(XmlNameTable nt, XmlNamespaceManager nsMgr,String xmlLang, XmlSpace xmlSpace, Encoding enc) 49String xmlLang, XmlSpace xmlSpace, Encoding enc) 160public Encoding Encoding {
System\Xml\Core\XmlReader.cs (1)
1493internal static Encoding GetEncoding(XmlReader reader) {
System\Xml\Core\XmlTextReader.cs (1)
329public Encoding Encoding {
System\Xml\Core\XmlTextReaderImpl.cs (31)
236Encoding reportedEncoding; 536Encoding enc = ( context != null ) ? context.Encoding : null; 562InitStringInput( string.Empty, Encoding.Unicode, xmlFragment ); 566InitStringInput( context.BaseURI, Encoding.Unicode, xmlFragment ); 579InitStringInput( ( context == null ) ? string.Empty : context.BaseURI, Encoding.Unicode, string.Concat( "<?xml ", xmlFragment, "?>" ) ); 683Encoding enc = null; 751Encoding enc = null; 824InitStringInput( string.Empty, Encoding.Unicode, xmlFragment ); 1913internal Encoding Encoding { 2424InitStringInput( baseUri, Encoding.Unicode, internalDtd ); 2579private void InitStreamInput( Stream stream, Encoding encoding ) { 2583private void InitStreamInput( string baseUriStr, Stream stream, Encoding encoding ) { 2589private void InitStreamInput( Uri baseUri, Stream stream, Encoding encoding ) { 2595private void InitStreamInput( Uri baseUri, string baseUriStr, Stream stream, Encoding encoding ) { 2600private void InitStreamInput( Uri baseUri, string baseUriStr, Stream stream, byte[] bytes, int byteCount, Encoding encoding ) { 2703ps.encoding = Encoding.Unicode; 2711private void InitStringInput( string baseUriStr, Encoding originalEncoding, string str ) { 2852private Encoding DetectEncoding() { 2885return Encoding.BigEndianUnicode; 2896return Encoding.Unicode; 2907return Encoding.Unicode; 2918return Encoding.BigEndianUnicode; 2939private void SetupEncoding( Encoding encoding ) { 2942ps.encoding = Encoding.UTF8; 2963private void SwitchEncoding( Encoding newEncoding ) { 2979private Encoding CheckEncoding( string newEncodingName ) { 3006Encoding newEncoding = null; 3012newEncoding = Encoding.GetEncoding( newEncodingName ); 3300Encoding encoding = null; 7212Encoding enc = ps.encoding; 7228Encoding enc = ps.encoding;
System\Xml\Core\XmlTextReaderImplAsync.cs (9)
83Encoding enc = null; 110Encoding enc = null; 816private Task InitStreamInputAsync( Uri baseUri, Stream stream, Encoding encoding ) { 822private Task InitStreamInputAsync( Uri baseUri, string baseUriStr, Stream stream, Encoding encoding ) { 827private async Task InitStreamInputAsync( Uri baseUri, string baseUriStr, Stream stream, byte[] bytes, int byteCount, Encoding encoding ) { 928ps.encoding = Encoding.Unicode; 959private Task SwitchEncodingAsync( Encoding newEncoding ) { 1132Encoding encoding = null; 4857Encoding enc = ps.encoding;
System\Xml\Core\XmlTextReaderImplHelpers.cs (1)
41internal Encoding encoding;
System\Xml\Core\XmlTextWriter.cs (3)
128Encoding encoding; 264public XmlTextWriter(Stream w, Encoding encoding) : this() { 277public XmlTextWriter(String filename, Encoding encoding)
System\Xml\Core\XmlUtf8RawTextWriter.cs (1)
50protected Encoding encoding;
System\Xml\Core\XmlValidatingReader.cs (1)
283public Encoding Encoding {
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
377internal Encoding Encoding {
System\Xml\Core\XmlWriterSettings.cs (5)
62Encoding encoding; 122public Encoding Encoding { 498Debug.Assert(Encoding.UTF8.WebName == "utf-8"); 674encoding = Encoding.UTF8; 776Debug.Assert(Encoding.Equals(Encoding.GetEncoding(Encoding.CodePage)), "Cannot serialize encoding correctly");
System\Xml\Dom\XmlDocument.cs (2)
1131internal Encoding TextEncoding { 1137return System.Text.Encoding.GetEncoding( value );
System\Xml\Dom\XmlDomTextWriter.cs (2)
20public XmlDOMTextWriter( Stream w, Encoding encoding ) : base( w,encoding ) { 25public XmlDOMTextWriter( String filename, Encoding encoding ) : base( filename,encoding ){
System\Xml\Resolvers\XmlPreloadedResolver.cs (1)
97return new MemoryStream(Encoding.Unicode.GetBytes(str));
System\Xml\XmlEncoding.cs (4)
236internal static Encoding UCS4_Littleendian { 242internal static Encoding UCS4_Bigendian { 248internal static Encoding UCS4_2143 { 253internal static Encoding UCS4_3412 {
System.Xml.Linq (2)
System\Xml\Linq\XLinq.cs (2)
5832ws.Encoding = Encoding.GetEncoding(declaration.Encoding); 5875ws.Encoding = Encoding.GetEncoding(declaration.Encoding);
WindowsBase (44)
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (16)
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); 1282Encoding encoding, 1359Encoding encoding
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\XmlDigitalSignatureProcessor.cs (2)
547System.Text.Encoding.UTF8)) 1001using (XmlTextWriter xWriter = new XmlTextWriter(s, System.Text.Encoding.UTF8))
Base\MS\Internal\IO\Zip\ZipIOBlockManager.cs (1)
220internal Encoding Encoding
Base\MS\Internal\IO\Zip\ZipIOCentralDirectoryFileHeader.cs (4)
38internal static ZipIOCentralDirectoryFileHeader CreateNew(Encoding encoding, ZipIOLocalFileBlock fileBlock) 57internal static ZipIOCentralDirectoryFileHeader ParseRecord(BinaryReader reader, Encoding encoding) 460private ZipIOCentralDirectoryFileHeader(Encoding encoding) 509private Encoding _encoding;
Base\MS\Internal\IO\Zip\ZipIOLocalFileHeader.cs (2)
47internal static ZipIOLocalFileHeader CreateNew(string fileName, Encoding encoding, 98internal static ZipIOLocalFileHeader ParseRecord(BinaryReader reader, Encoding encoding)
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (1)
1167return Encoding.Unicode.GetString(dataBuffer, 0, dataBuffer.Length - 2);
Base\System\IO\Packaging\CompoundFile\DataSpaceManager.cs (6)
1061new BinaryReader( dataSpaceMapStream, System.Text.Encoding.Unicode )) 1146new BinaryWriter( dataSpaceMapStream, System.Text.Encoding.Unicode )) 1214using(BinaryReader definitionReader = new BinaryReader( definitionStream, System.Text.Encoding.Unicode )) 1284using(BinaryWriter definitionWriter =new BinaryWriter( singleDefinition, System.Text.Encoding.Unicode )) 1337using(BinaryReader definitionReader = new BinaryReader( transformDefinition, System.Text.Encoding.Unicode )) 1459using(BinaryWriter transformWriter = new BinaryWriter( transformPrimary, System.Text.Encoding.Unicode ))
Base\System\IO\Packaging\CompoundFile\FormatVersion.cs (2)
322binarywriter = new BinaryWriter(stream, System.Text.Encoding.Unicode); 535BinaryReader streamReader = new BinaryReader(stream, System.Text.Encoding.Unicode);
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);
Base\System\Windows\Markup\XmlCompatibilityReader.cs (1)
738internal System.Text.Encoding Encoding
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (2)
861private static readonly string _webNameUTF8 = Encoding.UTF8.WebName.ToUpperInvariant(); 862private static readonly string _webNameUnicode = Encoding.Unicode.WebName.ToUpperInvariant();
Shared\MS\Win32\NativeMethodsCLR.cs (2)
6196string result = Encoding.Default.GetString(buffer, offset, i - offset); 6214byte[] bytes = Encoding.Default.GetBytes(s);
WsatConfig (5)
CommandLine\ConsoleEntryPoint.cs (1)
258if ((System.Console.OutputEncoding.CodePage != Encoding.UTF8.CodePage) &&
Configuration\ClusterRegistryConfigurationProvider.cs (3)
196return Encoding.Unicode.GetString(buffer, 0, buffer.Length - 2); 206byte[] temp = Encoding.Unicode.GetBytes(s); 287return Encoding.Unicode.GetString(buffer, start, index - start - 2);
Configuration\MsdtcClusterUtils.cs (1)
336return Encoding.Unicode.GetString(buffer, 0, buffer.Length - 2);
WsatUI (4)
Configuration\ClusterRegistryConfigurationProvider.cs (3)
196return Encoding.Unicode.GetString(buffer, 0, buffer.Length - 2); 206byte[] temp = Encoding.Unicode.GetBytes(s); 287return Encoding.Unicode.GetString(buffer, start, index - start - 2);
Configuration\MsdtcClusterUtils.cs (1)
336return Encoding.Unicode.GetString(buffer, 0, buffer.Length - 2);