We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bf4af1 commit 18c30c3Copy full SHA for 18c30c3
sdk/Aliyun/OTS/ProtoBuffer/SearchVariantType.cs
@@ -75,15 +75,15 @@ public static byte[] FromString(string v)
75
{
76
using (MemoryStream ms = new MemoryStream())
77
78
- byte[] strBytes = UTF8Encoding.Default.GetBytes(v);
+ byte[] strBytes = Encoding.UTF8.GetBytes(v);
79
80
ms.WriteByte(VT_STRING);
81
foreach (var item in BitConverter.GetBytes(strBytes.Length))
82
83
ms.WriteByte(item);
84
}
85
86
- foreach (var item in UTF8Encoding.Default.GetBytes(v))
+ foreach (var item in Encoding.UTF8.GetBytes(v))
87
88
89
0 commit comments