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

Examples does not support east asian windows? #217

Open
heri3x opened this issue Feb 17, 2020 · 1 comment
Open

Examples does not support east asian windows? #217

heri3x opened this issue Feb 17, 2020 · 1 comment

Comments

@heri3x
Copy link

heri3x commented Feb 17, 2020

Hi.
It seems that Gocui examples need to be added the code below in main funcs when I build it for Windows 10 (in japanese language).
You may already know. Just for info.

	if runtime.GOOS == "windows" && runewidth.IsEastAsian() {
		g.ASCII = true
	}
@Regentag
Copy link

This is a problem with the console's code page.
Try changing the code page to UTF-8 instead of ASCII mode.
C:\> CHCP 65001

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

2 participants