-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qrcode.makeCode() still has Code Length OverFlow Error #1
Comments
Hello @suxiaogang. |
emmmmm.... after investigation this might be related to character encoding ... var QRCodeBox = new QRCode(document.getElementById("qr"), {
width: 200,
height: 200,
correctLevel: QRCode.CorrectLevel.H
});
var str = "ed2k://|file|【电影家园www.idyjy.com下载】寂静之地.HD韩版中英双字.mp4|1129787457|AD3BD4384712D52D2BB09A150AF64D55|h=BMZZS7VBJ4ZAROGOU56245LCBBO6DRO7|/";
QRCodeBox.makeCode(str); @fladna9 well you can close this issue if it is confirmed to be a encoding problem. |
Chrome/65.0.3325.181 & Mac OS X 10_13_4, everytime <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
</head>
<body class="chrome-popup">
<div style="width:100%;margin:35px;" id="qr"></div>
<script src="http://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<!--replace below with your forked file-->
<script src="https://raw.githubusercontent.com/KeeeX/qrcodejs/master/qrcode.min.js"></script>
</body>
<script>
$(document).ready(function() {
var QRCodeBox = new QRCode(document.getElementById("qr"), {
width: 200,
height: 200,
correctLevel: QRCode.CorrectLevel.H
});
var str = "ed2k://|file|【电影家园www.idyjy.com下载】寂静之地.HD韩版中英双字.mp4|1129787457|AD3BD4384712D52D2BB09A150AF64D55|h=BMZZS7VBJ4ZAROGOU56245LCBBO6DRO7|/";
QRCodeBox.makeCode(str);
});
</script>
</html>
|
Ok, problem is the Tested on Chrome, Safari, Firefox, and had no problem so far. Below is the code of the Testpage i used (just edited
Will redo a min.js as soon as i have a bit of time for this. In the mean time, i highly recommend you to use the non-minified version, or to minify it yourself... Have a good day ! |
I will leave this Open until a fixed |
nice job dude |
Fixed in df9405a, closing issue. |
Come form https://github.com/davidshimjs/qrcodejs/issues/78 and firstly thanks for you awesome fork for the original repo.
it seems that
qrcode.makeCode()
still has this issue. please do a further job, thank you.The text was updated successfully, but these errors were encountered: