首页
it技术
登录
6mi
u
盘
搜
搜 索
it技术
解决前后端base64编码传递时的中文乱码问题
解决前后端base64编码传递时的中文乱码问题
it
2023-08-06
67
1 前端JavaScript加密
window
.
btoa
(
unescape
(
encodeURIComponent
(
str
)
)
)
2 后端Java解密
String decode
=
new
String
(
Base64
.
getDecoder
(
)
.
decode
(
str
)
,
StandardCharsets
.
UTF_8
)
;
转载请注明原文地址: https://lol.8miu.com/read-7787.html
最新回复
(
0
)