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

建议中文注释/文档改用utf8编码 #4

Open
YiuTerran opened this issue Jan 14, 2017 · 5 comments
Open

建议中文注释/文档改用utf8编码 #4

YiuTerran opened this issue Jan 14, 2017 · 5 comments

Comments

@YiuTerran
Copy link

source insight只有windows下有啊,在mac下看全是乱码,有点蛋疼。。

@y123456yz
Copy link
Owner

@YiuTerran
我这里有个编码转换的脚步,你可以参考下,自行进行转换下哈:

https://github.com/y123456yz/reading-code-of-nginx-1.9.2/blob/master/nginx-1.9.2/iconv_transfer

@winshining
Copy link

@y123456yz 这个工程非常好,美中不足的就是 @YiuTerran 提到的在类Unix系统下看注释全是乱码,我主要用Linux。
你说的那个脚本我试过了,无效:(

@lee3164
Copy link

lee3164 commented Aug 13, 2018

同上,类linux下无法使用,🤣

@ShenJY25
Copy link

ShenJY25 commented Sep 2, 2018

我mac下用vscode,设置让他自动猜文本格式,可以用

@y123456yz
Copy link
Owner

脚本里面的这句:
iconv -f utf-8 -t gb2312 $1/$child > $2/$child
根据实际情况做下修改,-f是原来的编码 -t是转换后的编码方式

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

5 participants