文件名称:ZXing-v2_1-GBK-chinese-trans
介绍说明--下载内容均来自于网络,请自行研究使用
ZXing 2.1版GBK中文乱码解决办法:
zxing中扫瞄二维码图片,如果包含Gbk中文,乱码解决办法是修改DecodedBitStreamParser.h文件,在里面加入GBK的判断。
在2.1版本中,解码的定义不在这个类中了,挪到了StringUtils类中,所以需要修改这个类,在修改过程中发现,中文被优先转移成日文了。
所以需要挪动一下原类中的代码顺序。
使用方法,直接用两个类,把原来的类给替换掉就可以了。-ZXing 2.1 version GBK Chinese garbled solution: zxing in two-dimensional code scanning pictures, if it contains Gbk Chinese, garbled solution is to modify DecodedBitStreamParser.h file, which joined GBK judgment. In version 2.1, the decoding is not defined within this class, and moved to the StringUtils class, so it is necessary to modify this class, modifying the process of discovery, Chinese is preferentially transferred into Japanese it. So what needs to move the original code in the class order. Use, the direct use of two classes, the original class to replace it.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
StringUtils.cpp
__MACOSX
........\._StringUtils.cpp
StringUtils.h
__MACOSX\._StringUtils.h
ZXing 2.1鐗圙BK涓