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

能不能改成utf-8编码 #40

Open
woodlyer opened this issue Jan 15, 2024 · 2 comments
Open

能不能改成utf-8编码 #40

woodlyer opened this issue Jan 15, 2024 · 2 comments

Comments

@woodlyer
Copy link

vscode显示注释的时候默认用的是utf-8,显示都是乱码,现在不都流行utf-8了。
用utf-8更加的国际化,更加modern

@microcai
Copy link

microcai commented Dec 3, 2024

为啥 utf8 = 国际化?
还有为啥要国际化?

@woodlyer
Copy link
Author

woodlyer commented Dec 4, 2024

因为如果用了utf8,非gb2312的用户看到的,也是一样的中文,而不会是 乱码。
乱码会导致编译失败。 原因是虽然中文都在//后面,是注释。但是如果有些乱码被解释为 \n , 就会失去//的注释作用。

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