gtanner / qrcode-terminal

QRCodes in your terminal, cause thats hot.
Apache License 2.0
1.28k stars 102 forks source link

unicode is not support #39

Open GHolk opened 4 years ago

GHolk commented 4 years ago

this library does not support unicode. for example: require('qrcode-terminal').generate('αβγ') will generate QR code which would be parsed to garbled text.

> require('qrcode-terminal').generate('αβγ', {small:true})
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █▀▀ ▄ █ ▄▄▄▄▄ █
█ █   █ █▀▀▄▄ █ █   █ █
█ █▄▄▄█ █▀▄█▀▄█ █▄▄▄█ █
█▄▄▄▄▄▄▄█▄▀▄█▄█▄▄▄▄▄▄▄█
█ ▄▄▄ ▀▄▄ ▀█ ▀ ▀▄█▄▀ ▀█
█ ▄▀▀▀▄▄▄█▀ ▀ ▀ ▄███▀▄█
█▄▄██▄█▄▄▀ ▀█ ██ █▄▀▀▀█
█ ▄▄▄▄▄ █▄█ ▄█▄█▀ ▄▀▀ █
█ █   █ █  █ ▀ ▀█▄▀▄███
█ █▄▄▄█ █ ▀▀▀ ▀ ▄█▀████
█▄▄▄▄▄▄▄█▄███▄██▄██▄▄██