|
|
@@ -123,12 +123,12 @@ public class CodeUtils {
|
|
|
|
|
|
hints.put(DecodeHintType.POSSIBLE_FORMATS, decodeFormats);
|
|
|
// 设置继续的字符编码格式为UTF8
|
|
|
-// hints.put(DecodeHintType.CHARACTER_SET, "UTF8"); //无法识别,应该是错误的设置
|
|
|
+ hints.put(DecodeHintType.CHARACTER_SET, "UTF8"); //无法识别,应该是错误的设置, 默认
|
|
|
// hints.put(DecodeHintType.CHARACTER_SET, "UTF-8"); //无法识别
|
|
|
// hints.put(DecodeHintType.CHARACTER_SET, "Unicode"); //无法识别
|
|
|
// hints.put(DecodeHintType.CHARACTER_SET, "GBK"); //使用这个编码与蓝牙打印机的一样,但无法正常识别含中文的二维码
|
|
|
-// hints.put(DecodeHintType.CHARACTER_SET, "ISO-8859-1"); //无法识别
|
|
|
- hints.put(DecodeHintType.CHARACTER_SET, "gb2312"); //使用这个编码与蓝牙打印机的一样,但无法正常识别含中文的二维码
|
|
|
+// hints.put(DecodeHintType.CHARACTER_SET, "ISO-8859-1"); //无法识别,也可能是: ISO88591
|
|
|
+// hints.put(DecodeHintType.CHARACTER_SET, "gb2312"); //使用这个编码与蓝牙打印机的一样,但无法正常识别含中文的二维码
|
|
|
// 设置解析配置参数
|
|
|
multiFormatReader.setHints(hints);
|
|
|
|