title: How can you to interpret a forward slash in a QR code so that the entire string is read using JavaScript?
body: <p>I am developing a web page in which a user can use a barcode scanner to scan a QR code. </p>
  
  <p>I am using the following code to capture the contents of the QR code:</p>
  
  <pre><code>$(document).ready(function () {
      var barcode = "";
  
      $(document).keydown(function (e) { 
          var code = (e.keyCode ? e.keyCode : e.which);
  
          barcode = barcode + String.fromCharCode(code);
      });
  });
  </code></pre>
  
  <p>There is a forward slash (/) in the QR code that is getting converted to an upside down question mark (¿) and the rest of the code is ignored.</p>
  
  <p>Here is the expected result:</p>
  
  <p><code>1111P111FP301X
  453530137791
  05016/201506
  182</code></p>
  
  <p>And this is the actual result:</p>
  
  <p><code>1111P111FP301Xm453530137791m05016/</code></p>
  
  <p>What can I do so that the whole string is read?</p>