项目场景: 调用第三方接口需要将参数Base64位加密 问题描述: Base64位加密出现中文加密无法解码 乱码出现 Base64Util.encode(tPassengerApplicable.getName().getBytes())); 这样中文加密会乱码 解决方案: Base64Util.encode(tPassengerApplicable.getName().getBytes(“UTF-8”)); 通过指定编码格式即可;