Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mixed QR code with static text and a URL

Tags:

url

qr-code

I am trying to create a QR code with both static text and a URL. The static text is 23 characters long and must be first in the code. I can add the URL after the text, and my phone scanning tool recognizes it as a URL, but I need it to automatically launch the URL when scanned. Basically to ignore the first 23 digits. Is there a delimiter I can use to achieve this?

like image 654
Chris Page Avatar asked Dec 29 '25 18:12

Chris Page


1 Answers

The QRCode specification says nothing about the contents it can have, so you are limited to how the scanners handle the input. You can find a good description of the de-facto contents a QRcode can have on the zxing lib wiki and some nice examples on this SO answer.

Basically you can either have a URL (which might have your static text as a parameter to be shown on the page, think http://example.com?text=yourContent), or a text with the URL on the end - in which case you are scanner-implementation dependent, but will probably end up with wrong results. There is no default delimiter.

like image 162
Marcelo Avatar answered Dec 31 '25 18:12

Marcelo