jverkoey / ObjQREncoder

Objective-C QR Encoder
390 stars 102 forks source link

Very weird behavior on a concrete input string #11

Open asqar opened 12 years ago

asqar commented 12 years ago

We've experinced a weird behaviour while encoding the following string: @"150#128091007#https://m.citysoft.kz:85/". None of QR readers suceeded to read the generated QR code. If we change ANYTHING (a numeral, domain name, port or slash in the end) - we get a valid QR code.

150#128091007#https://m.citysoft.kz:85 - works 150#128091007#https://m.google.kz:85/ - works 150#128091008#https://m.citysoft.kz:85/ - works 150#128091007#https://m.citysoft.kz/ - works 150#128091007#https://m.citysoft.kz:85/ - does not work (checked on QRUI example project)

However, if we modify [QREncoder encode:] method and use QRCorrectionLevelMedium instead of QRCorrectionLevelHight - everything is OK again.

fcovas commented 10 years ago

I'm having the same problem, some strings are generating invalid QRCodes. When I change do medium they work.