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

Chinese output garbled #111

Open
zhangfangyong opened this issue Jan 13, 2021 · 7 comments
Open

Chinese output garbled #111

zhangfangyong opened this issue Jan 13, 2021 · 7 comments

Comments

@zhangfangyong
Copy link

When I try to output Chinese on the console, the display is garbled.
image
My windows version is win10 20H2.

@AKonia
Copy link

AKonia commented Jan 14, 2021

Check your encoding settings in Dev-Cpp and in windows console, possibly they doesn't match

@185264646
Copy link

Add system(chcp 65001);(don't forget to include stdlib.h first) before you print any Chinese or you must change the coding to ANSI rather than UTF8. This can be done by opening the original file with notepad.exe and save it in ANSI. Don't click yes when Dev-Cpp asks you to save the source file in UTF8.

@2244583435
Copy link

我也是中文输出乱码,不管用什么方法都没用。
I am also Chinese output garbled, no matter what method is used, it is useless.

@2244583435
Copy link

编写的时候,中文也无法正常显示。
When writing, Chinese can't be displayed normally.

@lianix
Copy link

lianix commented Jan 26, 2021

To display the Chinese on edit , the Front such as "新宋体" which support Chinese needs to be set on Edit display item
To print the Chinese on the console, the source file need to set "ANSI" code

@ZhouJiatai
Copy link

程序对ANSI编码的支持很不好
The program has poor support for ANSI coding
See Issue #126

@Embarcadero Embarcadero deleted a comment from royqh1979 Feb 28, 2021
@xumingkuan
Copy link

#140 (comment)

This works for me

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

7 participants