my_basic icon indicating copy to clipboard operation
my_basic copied to clipboard

Unicode Printing Issue

Open blazer2k1 opened this issue 2 years ago • 5 comments

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


, 5

blazer2k1 avatar Sep 27 '23 21:09 blazer2k1

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

paladin-t avatar Sep 28 '23 06:09 paladin-t

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.

blazer2k1 avatar Sep 28 '23 09:09 blazer2k1

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

paladin-t avatar Sep 30 '23 09:09 paladin-t

Updated, please try again.

paladin-t avatar Oct 10 '23 06:10 paladin-t

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.

blazer2k1 avatar Oct 10 '23 06:10 blazer2k1