Git Product home page Git Product logo

Comments (6)

jenly1314 avatar jenly1314 commented on May 26, 2024 1

你可以通过CaptureHelper.characterSet(String characterSet);来设置解码时的字符编码

from zxinglite.

jenly1314 avatar jenly1314 commented on May 26, 2024

这个取决于你生成二维码时用的是什么字符编码, 生成和解析用相同的字符编码就行。

from zxinglite.

AbsoluteChan avatar AbsoluteChan commented on May 26, 2024

嗯,是这个道理,我编码的时候也是用的GKB,修改了解释码为GBK,中文依然是乱码,没有变化,所以咨询一下是不是我修改的代码位置问题

from zxinglite.

jenly1314 avatar jenly1314 commented on May 26, 2024

常用的字符编码就那么几个(UTF-8、GBK、GB2312、ISO8859-1),建议用UTF-8国际通用,你不妨贴个码,我抽空帮你定位下字符编码。

from zxinglite.

AbsoluteChan avatar AbsoluteChan commented on May 26, 2024

之前我用基本的zxing,该二维码用GBK编码识别是可以 ,但是你这个版本识别该中文与出现乱码,C生成的二维码,我这里贴一下
QQ截图20190717173435
我排除了下,发现你这个是自动识别编码然后选择识别的吗?
如果我固定GBK应该可以排除这个错误。

from zxinglite.

AbsoluteChan avatar AbsoluteChan commented on May 26, 2024

非常感谢,问题解决了,之前一直找不到哪里设定解码编码,原来你没有使用调用,而是自动适配的,现在我直接调用改方法,固定编码方式,问题解决了。

from zxinglite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.