title: Qrcode.js - Error: code length overflow. (1716>1056)
body: <p>I am using <a href="http://davidshimjs.github.io/qrcodejs/" rel="nofollow noreferrer">http://davidshimjs.github.io/qrcodejs/</a> to generate a QR Code for an event, but when I try to make code from a string shown below I get this error <strong>Error: code length overflow. (1716&gt;1056)</strong>. I found out that when I change <code>correctLevel : QRCode.CorrectLevel.H</code> to the medium it works. It also works when I remove DESCRIPTION or some other part of the string.</p>
  <p>Can you explain to me how the limits work, and how should I set so when the code is generated from the user's input (it can have really long description) it won't crash?</p>
  <pre><code>qrkod(){
    this.qrCodeText =    &quot;BEGIN:VCALENDAR&quot;+&quot;%0D%0A&quot;+
                         &quot;VERSION:1.0&quot;+&quot;%0D%0A&quot;+
                         &quot;BEGIN:VEVENT&quot;+&quot;%0D%0A&quot;+
                         &quot;DTSTART:&quot; + &quot;19960401T090000&quot; +&quot;%0D%0A&quot;+
                         &quot;DTEND:&quot; + &quot;19960401T043000&quot; +&quot;%0D%0A&quot;+
                         &quot;SUMMARY:&quot; + &quot;Your Proposal Review&quot;+&quot;%0D%0A&quot;+
                         &quot;DESCRIPTION:&quot; + &quot;Steve and John to review newest proposal material&quot;+&quot;%0D%0A&quot;+
                         &quot;END:VEVENT&quot;+&quot;%0D%0A&quot;+
                         &quot;END:VCALENDAR&quot;+&quot;%0D%0A&quot;;
    this.qrCodeText = decodeURIComponent(this.qrCodeText);
  
    this.qrcode0 = new QRCode(&quot;qrcode&quot;, {
        text: this.qrCodeText,
        width: 363,
        height: 385,
        colorDark : &quot;#000000&quot;,
        colorLight : &quot;#ffffff&quot;,
        correctLevel : QRCode.CorrectLevel.H
    });
  }
  </code></pre>