qr-code-styling icon indicating copy to clipboard operation
qr-code-styling copied to clipboard

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

Open id1945 opened this issue 3 years ago • 1 comments

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];
  • https://kazuhikoarase.github.io/qrcode-generator/js/demo/
  • https://github.com/kazuhikoarase/qrcode-generator

Capture

id1945 avatar Sep 27 '22 11:09 id1945

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

hautv avatar Mar 29 '23 03:03 hautv