文件名称: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/
__MACOSX/._StringUtils.cpp
StringUtils.h
__MACOSX/._StringUtils.h
ZXing 2.1版GBK中文乱码解决办法.txt
__MACOSX/
__MACOSX/._StringUtils.cpp
StringUtils.h
__MACOSX/._StringUtils.h
ZXing 2.1版GBK中文乱码解决办法.txt
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
