libqrencode icon indicating copy to clipboard operation
libqrencode copied to clipboard

ANSI and UTF8 types do not display properly on Windows

Open sitiom opened this issue 3 years ago • 2 comments

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 avatar Jul 16 '22 12:07 sitiom

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

sitiom avatar Jul 16 '22 13:07 sitiom

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

sitiom avatar Jul 18 '22 08:07 sitiom