lib/QRCodeGenerator.js
function _getUTF8Length(content) {
    var result = encodeURI(content).toString().replace(/\%[0-9a-fA-F]{2}/g, 'a');
    return result.length + (result.length != content ? 3 : 0);
  }
function _getUTF8Length(content) {
    var result = encodeURI(content).toString().replace(/\%[0-9a-fA-F]{2}/g, 'a');
    return result.length + (result.length != content ? 3 : 0);
  }
function _getUTF8Length ( content ) { var result = encodeURI ( content ) . toString ( ) . replace ( / \%[0-9a-fA-F]{2} / g , 'a' ) ; return result . length + ( result . length != content ? 3 : 0 ) ; }
Gets text length
Gets text length