Closed no23reason closed 6 years ago
Hi,
There are two problems.
Try this. https://runkit.com/embed/xl2ig6ti9z7e
const qrcode = require("qrcode-generator")
//require("qrcode-generator/qrcode_SJIS")
qrcode.stringToBytes = qrcode.stringToBytesFuncs['UTF-8'];
const qr = qrcode(0, "L");
//qr.addData(`敦煌天空的沙礫帶著我們的記憶`, `Kanji`);
qr.addData(`敦煌天空的沙礫帶著我們的記憶`);
qr.make();
qr.createSvgTag();
Thank you for your reply, this works for me. Closing.
Hello, I am confused as on how to import the Kanji
qrcode_SJIS
file in Node.js. When I tried:it died on an reference error in the
qrcode_SJIS
saying thatqrcode
is not defined 😕 Can you please provide an example on how to do this?