16 references to Charset
System (16)
net\System\Net\_DigestClient.cs (16)
887
private static string CharsetEncode(string rawString,
Charset
charset) {
891
if (charset==
Charset
.UTF8 || charset==
Charset
.ANSI) {
892
byte[] bytes = charset==
Charset
.UTF8 ? Encoding.UTF8.GetBytes(rawString) : Encoding.Default.GetBytes(rawString);
906
private static
Charset
DetectCharset(string rawString) {
907
Charset
charset =
Charset
.ASCII;
915
charset = string.Compare(rawString, rawCopy, StringComparison.Ordinal)==0 ?
Charset
.ANSI :
Charset
.UTF8;
982
Charset
usernameCharset = DetectCharset(username);
983
if (!digestChallenge.UTF8Charset && usernameCharset==
Charset
.UTF8) {
987
Charset
passwordCharset = DetectCharset(password);
988
if (!digestChallenge.UTF8Charset && passwordCharset==
Charset
.UTF8) {
996
if (usernameCharset==
Charset
.UTF8) {
997
username = CharsetEncode(username,
Charset
.UTF8);
1002
authorization.Append(pair(DA_username, CharsetEncode(username,
Charset
.UTF8), true));