node-wechat-terminal icon indicating copy to clipboard operation
node-wechat-terminal copied to clipboard

The QR Code cannot be scanned

Open StevenQu opened this issue 7 years ago • 5 comments

The QR code generated by the wechat-terminal cannot be scanned. I decoded the QR code and it's said no barcode is included.

StevenQu avatar Oct 24 '16 02:10 StevenQu

same problem

ethanhe42 avatar Oct 24 '16 12:10 ethanhe42

any screenshot?

goorockey avatar Oct 25 '16 13:10 goorockey

For your information, I use zsh with oh-my-zsh. I changed my font to Hack regular 14pt, a powerline font in order to support agnoster theme. And I get the following QR-code: 2016-12-21 10 52 47 When I change my font to monoca 12pt, the QR-code looks like: 2016-12-21 10 56 00 Any suggestion on the font and size?

LuciusCao avatar Dec 21 '16 02:12 LuciusCao

The qrcode we got is generated with unicode char. See here

var platte= {
                WHITE_ALL: '\u2588',
                WHITE_BLACK: '\u2580',
                BLACK_WHITE: '\u2584',
                BLACK_ALL: ' ',
};

And these unicode chars have different padding in different fonts, which makes the qrcode we got disorted.

goorockey avatar Dec 21 '16 03:12 goorockey

windows下把终端字体改一下就ok,我改成12号

LIMU2 avatar Feb 17 '19 17:02 LIMU2