Skip to content

Commit 7c9819e

Browse files
committed
base64urlsave use utf8 replace ascii
1 parent 0db90fd commit 7c9819e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QBox/Util/Base64UrlSafe.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public static class Base64UrlSafe
88
public static string Encode(string text)
99
{
1010
if (String.IsNullOrEmpty(text)) return "";
11-
byte[] bs = Encoding.ASCII.GetBytes(text);
11+
byte[] bs = Encoding.UTF8.GetBytes(text);
1212
string encodedStr = Convert.ToBase64String(bs);
1313
encodedStr = encodedStr.Replace('+', '-').Replace('/', '_');
1414
return encodedStr;

0 commit comments

Comments
 (0)