.net
web端和app端base64解码时中文乱码的问题.
web端:
String data = new BASE64Encoder().encode(data.getBytes("UTF-8"));
app端
String data2 = new String(Base64.decode(data), "UTF-8");
编码与解码时必须指定编码类型。
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3