kozakdenys/qr-code-styling

Big issue!, Don't support UTF-8 Vietnamese ?

id1945 opened this issue · 1 comments

There is a unicode character error that you need to fix urgently. ⚠️ ⚠️ ⚠️ ⚠️

The same issue #126

Test text; Dương Hữu Đại

Here's how to fix the error in this library. ("default" | "SJIS" | "UTF-8")

import qrcode from "qrcode-generator";

const config = {
    multibyte: "UTF-8" 
}

qrcode.stringToBytes = qrcode.stringToBytesFuncs[config.multibyte];

Capture

hautv commented

support UTF-8 Vietnamese
#62