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格式 #26

Closed
sumory opened this issue Sep 1, 2014 · 9 comments
Closed

大部分代码文件都不是utf-8格式 #26

sumory opened this issue Sep 1, 2014 · 9 comments

Comments

@sumory
Copy link

sumory commented Sep 1, 2014

No description provided.

@Terry-Mao
Copy link
Owner

我们一直都是用vim开发的呀。

@sumory
Copy link
Author

sumory commented Sep 1, 2014

我用sublime,只有很少的文件能打开,其他文件必须要dump,应该是编码问题。
不管用什么开发,能统一一下编码到utf8吗?:)

@Terry-Mao
Copy link
Owner

我们这边刚才确认了都是utf8的,除非个别开发者用的windows。我确认下。我们这边都是Mac OS 开发的。

@Terry-Mao
Copy link
Owner

我刚才用sublime,也能打开。

@Terry-Mao
Copy link
Owner

你能给一个具体文件没

@Terry-Mao
Copy link
Owner

其他开发者,反馈都能打开,是不是你自己设置不对啊

@sumory
Copy link
Author

sumory commented Sep 1, 2014

image
比如config.go,生成了一个config.go.dump,里面还有一行乱码:
image

但router下的cn.go就正常打开,无乱码:
image

@sumory
Copy link
Author

sumory commented Sep 1, 2014

在windows上用notepad++查看,这些文件是以”UTF-8 无BOM“编码的,转为”以UTF-8“编码然后再在mac上可以打开了。
但我在mac上同样步骤实验,无论是有BOM还是无BOM都没发现问题。。

@sumory
Copy link
Author

sumory commented Sep 1, 2014

找到原因了,以前为了识别GBK编码,装了个插件”GBK Encoding Support“,现在把它remove掉,就可以打开了。:(

@sumory sumory closed this as completed Sep 1, 2014
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