jeromeetienne / jquery-qrcode

qrcode generation standalone (doesn't depend on external services)
http://blog.jetienne.com/blog/2011/04/07/jquery-qrcode/
MIT License
4.85k stars 2.5k forks source link

URL with question mark don't work #4

Open llama31 opened 13 years ago

llama31 commented 13 years ago

Hi, thank you for this great tool. I have tried to generate QR codes with URLs that include a question mark (?) in it. It doesn't work. (Possibly the "+" sign in the example below would cause in itself the same problem)

Example:

this doesn't work (no QR code generated):

  <div id='qrcode'></div>
  <script>
  jQuery('#qrcode').qrcode('http://maps.google.com/?q=1697+Broadway,+New+York,+NY');
  </script>

whereas this works:

  <div id='qrcode'></div>
  <script>
  jQuery('#qrcode').qrcode('http://maps.google.com');
  </script>

Any advice to resolve this? Thanks.

llama31 commented 13 years ago

Actually it isn't the question mark, the problem. It's the string's length.

Go see this thread: https://github.com/jeromeetienne/jquery-qrcode/issues/5

JeroenvDijk commented 13 years ago

I can confirm Wicket has a question mark before the start of a bookmarkable page, works perfectly.