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

不理解为什么在windows 下编码~ #21

Closed
epirus opened this issue Jun 28, 2016 · 3 comments
Closed

不理解为什么在windows 下编码~ #21

epirus opened this issue Jun 28, 2016 · 3 comments

Comments

@epirus
Copy link

epirus commented Jun 28, 2016

不理解为什么在windows 下编码后面会多出^M的字符

@hzlzh
Copy link
Member

hzlzh commented Jun 28, 2016

能否发一份出现特殊字符的文件,方便问题定位。

@epirus
Copy link
Author

epirus commented Jun 28, 2016

不好意思我描述的不好~ 就是在linux跟mac的环境下,如果使用vim进行浏览会出现^M的字符。这种字符是应为在windows中编写代码带来的~应该可以使用对应的编辑器去掉。

https://www.zhihu.com/question/22130727

@hzlzh
Copy link
Member

hzlzh commented Jun 28, 2016

image
你描述的问题应该就是编辑器设置的结尾换行符格式选取 win 还是 *nix 的问题,我们通常在 macOS 下的 Webstrom 编辑,少数文件会在 Windows 下提交,这个问题我们后面考虑一下做个统一,预计会选区 unix 或者 macOS 风格。

@hzlzh hzlzh closed this as completed Jun 28, 2016
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