LovelyIsJustice
Results
1
issues of
LovelyIsJustice
在QRCodeFormat中设置setEncode 如果值为“UTF-8”,我使用扫描枪扫描二维码会在字符串前无故加入“\00026”这个字段 如果改为"utf-8",就是改为小写就不会出现这样的情况 `format.setSize(size) // 设置图片大小 .setEncode("utf-8") // 设置文字编码(用UTF-8会出现\000026) .setErrorCorrectionLevel('L') // 设置错误修正等级 .setForeGroundColor(ForeGroundColor) // 设置前景色 .setBackGroundColor(BackGroundColor) // 设置背景色 .setImageFormat(imageFormat) // 设置生成的图片格式 .setMargin(0) // 设置图片空白区域, 单位 - 格(外填充) .setIcon(new File(iconPath));`