Code Monkey home page Code Monkey logo

Comments (2)

jens-duttke avatar jens-duttke commented on August 25, 2024

Thanks for reporting this issue.

The encoder on http://www.jsqr.de/encode.html encodes the data always using the encoding mode UTF8_SIGNATURE, which adds a Byte Order Mark to the beginning of the string, to tell the decoder, how to interprete the data, even if there are no UTF-8 encoded characters in the string.

Seems like neither the decoder you've used, nor the ZXing online generator support Byte Order Marks, so they both work together.

Anyhow, since in your specific case, your string does not include any UTF-8 characters, it's not required to add a BOM to the string.

So, I've implemented a detection, which checks the used characters, and use the BYTE encoding method instead of UTF8_SIGNATURE, if the string does not contain UTF-8 characters.

Beside that, I've implemented a new encoding option for Bitcoins:
http://www.jsqr.de/encode-bitcoin.html

Can you please check that with your bitcoin wallet software again?

from jsqr.

Wikinaut avatar Wikinaut commented on August 25, 2024

Yep, confirmed, it works.
I now used this test (with Umlauts!)

bitcoin:1JSQRqsGniGHejkntZv5JkoFdMj8MPuyHu?label=test1%20Test2äöüß&amount=0.10

and it works with your new page.

BTW, I use this https://play.google.com/store/apps/details?id=de.schildbach.wallet&hl=de bitcoin wallet, source code is also on Github.

from jsqr.

Related Issues (2)

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.