Comments (5)
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.
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.
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.
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?
from qrcode.
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)
- Apple watch support HOT 9
- Apple tvOS Support HOT 1
- compiler error HOT 1
- Version 1.0 not available on cocoapods HOT 5
- You may want to add this to the README HOT 1
- Crash issue on Xcode8 with swift2.3 HOT 4
- Submit to app Store HOT 3
- Pod is still at version 0.5 HOT 2
- Error correction level HOT 1
- Update podspec on CocoaPods registry HOT 1
- Crashes on iOS8 (when build with Xcode 8 / Swift 3) HOT 1
- When setting QRCode's backgroundColor clear. It comes out to be black background. HOT 3
- Logo on the middle ? HOT 2
- Can I use this qr code generator to store images? HOT 1
- swift4 support HOT 5
- CIColorExtension.swift 'characters' is deprecated: Please use String or Substring directly HOT 1
- Swift4.2 Please HOT 2
- Swift 5 update HOT 2
- SwiftPM Support
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 qrcode.