Comments (6)
你可以通过CaptureHelper.characterSet(String characterSet);
来设置解码时的字符编码
from zxinglite.
这个取决于你生成二维码时用的是什么字符编码, 生成和解析用相同的字符编码就行。
from zxinglite.
嗯,是这个道理,我编码的时候也是用的GKB,修改了解释码为GBK,中文依然是乱码,没有变化,所以咨询一下是不是我修改的代码位置问题
from zxinglite.
常用的字符编码就那么几个(UTF-8、GBK、GB2312、ISO8859-1),建议用UTF-8国际通用,你不妨贴个码,我抽空帮你定位下字符编码。
from zxinglite.
之前我用基本的zxing,该二维码用GBK编码识别是可以 ,但是你这个版本识别该中文与出现乱码,C生成的二维码,我这里贴一下
我排除了下,发现你这个是自动识别编码然后选择识别的吗?
如果我固定GBK应该可以排除这个错误。
from zxinglite.
非常感谢,问题解决了,之前一直找不到哪里设定解码编码,原来你没有使用调用,而是自动适配的,现在我直接调用改方法,固定编码方式,问题解决了。
from zxinglite.
Related Issues (20)
- 连续扫描,不是二维码或条码也会被扫出描到 HOT 1
- 识别区域无效 HOT 1
- 请问如何只扫描扫描框内的图像 HOT 1
- 继承 CaptureActivity 崩溃 HOT 2
- 扫描屏幕上的二维码,如果背景不是白色的,这时候扫码识别率不高 HOT 1
- 扫码的时候 界面有多个二维码 如何给予提示 类似微信那种 让用户选择点击哪个? HOT 4
- 2.2.x版本有问题 HOT 1
- 2.1.0 预览时半个屏幕黑色 HOT 1
- Camera 3 is not available. Ignore physical camera status change HOT 1
- 从相册选择食品条形码图片,无法识别 HOT 3
- 生成条形码两边空白 HOT 1
- 小米9 SE手机上,进入扫描二维码页面时无响应。 HOT 6
- 前置预览颠倒, 怎么调整 HOT 3
- camerax预览出现慢 HOT 3
- 希伯来语下,如果设置了vvLabelText,他的布局会有异常 HOT 6
- 扫描框vvFrameRatio="1.0"的时候,vvLaserDrawable的大小还是被限制在默认框里,自定义扫描图片是不是也可以随着框的大小自动展示大小 HOT 1
- 继承的类里面拿不到上下文 HOT 1
- 升级到2.2.1以后,oppo手机扫码无反应 HOT 5
- 扫相册图片崩溃 HOT 2
- 如何切换摄像头呢?我想使用指定的摄像头该如何设置 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zxinglite.