fukuchi / libqrencode

A fast and compact QR Code encoding library
https://fukuchi.org/works/qrencode/
GNU Lesser General Public License v2.1
2.57k stars 599 forks source link

ANSI and UTF8 types do not display properly on Windows #200

Open sitiom opened 2 years ago

sitiom commented 2 years ago

Hi, I have built the qrencode tool using the port in vcpkg. When choosing the utf8 types, they do not display properly and display garbage. See the screenshot below in Windows Terminal:

image

sitiom commented 2 years ago

Apparently, ANSI also doesn't work when I'm using the conhost: image

sitiom commented 2 years ago

Workaround for UTF8: Enable Beta: Use Unicode UTF-8 for worldwide language support in the Control Panel \ Clock and Region \ Region \ Administrative \ Change system locale... dialog box and reboot.

image

Alternatively, you can use this reg file which does the same thing:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage]
"ACP"="65001"
"OEMCP"="65001"
"MACCP"="65001"

UTF8 should now work. ANSI still doesn't work in the conhost, though. image