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

Unicode Printing Issue #82

Open
blazer2k1 opened this issue Sep 27, 2023 · 5 comments
Open

Unicode Printing Issue #82

blazer2k1 opened this issue Sep 27, 2023 · 5 comments

Comments

@blazer2k1
Copy link

blazer2k1 commented Sep 27, 2023

Trying out the unicode example in the Wiki, I get this output on Windows 10:


, 5
@paladin-t
Copy link
Owner

Unicode characters are saved in UTF-16, GBK, etc rather than UTF-8 by many editors on Windows. Try re-saving it in UTF-8, it will work as expected.

image

@blazer2k1
Copy link
Author

I did and using sublimetext, set to utf-8. I assume this would also involve setting the localization and not working directly since it is printing to the console.

@paladin-t
Copy link
Owner

I will make a full debug when I get back to my win 10 in a few days.

@paladin-t
Copy link
Owner

Updated, please try again.

@blazer2k1
Copy link
Author

blazer2k1 commented Oct 10, 2023

No longer blank, but I get this now on mingw/gcc:

你好世界
πüôπéôπü½πüíπü», 5

and building with Visual Studio I get this:

Untitled

but when I copy and paste it, it does somehow work.

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