Code Monkey home page Code Monkey logo

Comments (5)

le4ker avatar le4ker commented on May 26, 2024 3

We haven't decided if we will choose your library for our product yet, so I can't commit on paying your test debt, yet 😄

from qrcode.

blochberger avatar blochberger commented on May 26, 2024 1

Only bytes and Latin1 encoded strings are supported by the CIQRCodeGenerator filter. Therefore no special encoding is used for numeric, alphanumeric, or Kanji/Kana input. Kanji/Kana will not translate to Latin1 and can therefore not be passed as a String.

Any interest in a pull request for returning nil by the initializer of QRCode if the input is exceeding the limit?

from qrcode.

aschuch avatar aschuch commented on May 26, 2024

I think its rather a matter of the max length that can be encoded into the QRCode format.

Numeric only Max. 7,089 characters (0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
Alphanumeric Max. 4,296 characters (0–9, A–Z [upper-case only], space, $, %, *, +, -, ., /, :)
Binary/byte Max. 2,953 characters (8-bit bytes) (23624 bits)
Kanji/Kana Max. 1,817 characters

-- Source: http://stackoverflow.com/a/12764370

from qrcode.

le4ker avatar le4ker commented on May 26, 2024

Thanks Alexander.

And what is the expected behavior when trying to write more data than a qr code can handle?

Shouldn't there be a test that covers that case? :shipit:

from qrcode.

aschuch avatar aschuch commented on May 26, 2024

To be honest, I don't know.
A test would be a good idea, do you want to submit a pull request?

from qrcode.

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.