Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sitiom opened this issue Jul 16, 2022 · 2 comments
Open

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

sitiom opened this issue Jul 16, 2022 · 2 comments

Comments

@sitiom
Copy link

sitiom commented Jul 16, 2022

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
Copy link
Author

sitiom commented Jul 16, 2022

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

@sitiom sitiom changed the title UTF8 types do not display properly on Windows ANSI and UTF8 types do not display properly on Windows Jul 16, 2022
@sitiom
Copy link
Author

sitiom commented Jul 18, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant