kozakdenys / qr-code-styling

Automaticly generate your styled QR code in your web app.
https://qr-code-styling.com
MIT License
1.46k stars 470 forks source link

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

Open id1945 opened 2 years ago

id1945 commented 2 years ago

There is a unicode character error that you need to fix urgently. :warning: :warning: :warning: :warning:

The same issue https://github.com/kozakdenys/qr-code-styling/issues/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 1 year ago

support UTF-8 Vietnamese https://github.com/kozakdenys/qr-code-styling/issues/62