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 0db90fd commit 7c9819eCopy full SHA for 7c9819e
QBox/Util/Base64UrlSafe.cs
@@ -8,7 +8,7 @@ public static class Base64UrlSafe
8
public static string Encode(string text)
9
{
10
if (String.IsNullOrEmpty(text)) return "";
11
- byte[] bs = Encoding.ASCII.GetBytes(text);
+ byte[] bs = Encoding.UTF8.GetBytes(text);
12
string encodedStr = Convert.ToBase64String(bs);
13
encodedStr = encodedStr.Replace('+', '-').Replace('/', '_');
14
return encodedStr;
0 commit comments