This commit is contained in:
Looly
2022-03-20 21:44:12 +08:00
parent 9b16947508
commit b1920b6fa2
2 changed files with 3 additions and 2 deletions

View File

@@ -217,7 +217,7 @@ public class Base64 {
* @since 5.7.2
*/
public static String encodeStr(byte[] arr, boolean isMultiLine, boolean isUrlSafe) {
return Base64Encoder.encodeStr(arr, isMultiLine, isUrlSafe);
return StrUtil.str(encode(arr, isMultiLine, isUrlSafe), DEFAULT_CHARSET);
}
/**