1.正解
byte[] b = Base64Decoder.decodeToBytes(s);
return new String(b, "UTF-8");
2.在服务器上跑乱码
byte[] b = Base64Decoder.decode(s).getBytes();
return new String(b, "UTF-8");
1.正解
byte[] b = Base64Decoder.decodeToBytes(s);
return new String(b, "UTF-8");
2.在服务器上跑乱码
byte[] b = Base64Decoder.decode(s).getBytes();
return new String(b, "UTF-8");