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

sublime text 3文件标签上还是不能显示中文 #28

Closed
zfdang opened this issue Sep 13, 2013 · 13 comments
Closed

sublime text 3文件标签上还是不能显示中文 #28

zfdang opened this issue Sep 13, 2013 · 13 comments
Labels

Comments

@zfdang
Copy link

zfdang commented Sep 13, 2013

乱码啊
Uploading 2013-09-13_104706.jpg . . .

@seanliang
Copy link
Owner

以此前的经验判断你安装了另一个GBK插件,请将其禁用或删除后重启再试。

@zfdang
Copy link
Author

zfdang commented Sep 13, 2013

这个真没有,只有这么一个插件是关于encoding的

@seanliang
Copy link
Owner

麻烦提供更多信息,比如操作系统版本、ConvertToUTF8安装方式,最好有Console信息(Ctrl + `调出)及乱码截图。

@zfdang
Copy link
Author

zfdang commented Sep 17, 2013

console里只有这么一条:

Unable to auto detect encoding, using fallback encoding Western (Windows 1252)

下面的应该跟这个插件无关:
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 303, in on_activated
callback.on_activated(v)
File "trailing_spaces in C:\Users\XX\AppData\Roaming\Sublime Text 3\Installed Packages\TrailingSpaces.sublime-package", line 395, in on_activated
File "trailing_spaces in C:\Users\XX\AppData\Roaming\Sublime Text 3\Installed Packages\TrailingSpaces.sublime-package", line 416, in freeze_last_version
File "X/codecs.py", line 679, in read
File "X/codecs.py", line 482, in read
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb1 in position 0: invalid start byte

@zfdang
Copy link
Author

zfdang commented Sep 17, 2013

windows 7 x64, 英文版本的。sublimetext是build 3047

2013-09-17_134222

@seanliang
Copy link
Owner

ConvertToUTF8只对内容进行转换,不对标签做任何操作,应该不会引起乱码才对。

请按以下步骤操作并反馈:

  1. 禁用 ConvertToUTF8,重启ST3后再次打开此文件确认标签名是否乱码。
  2. 如果依然乱码,则说明乱码非本插件引起,建议对其他插件作上述操作以确认是某个插件造成或是ST3本身的原因。
  3. 如果乱码消失,麻烦提供这个文件样本给我,以便测试。

@zfdang
Copy link
Author

zfdang commented Sep 18, 2013

禁用之后,文件标签还是乱码

@seanliang
Copy link
Owner

这个是Sublime Text自身或其他插件引发的问题,我手头没有相关测试环境,表示爱莫能助。

@a-really
Copy link

a-really commented Nov 5, 2014

我也遇到了同样的问题
qq 20141105111157

@seanliang
Copy link
Owner

@a-really 这个是ST的文件列表窗口么?如果是文件名本身的乱码问题不在本插件处理范围内。

@wendybubu
Copy link

http://www.zhihu.com/question/24029280
不知道你们是不是和我遇到的问题类似,我通过上面的方式修改完就正常了

@seanliang
Copy link
Owner

经本人测试,DPI > 100% 时确实会出现文件名乱码,设置 "dpi_scale": 1 并重启ST3后恢复正常。

有类似问题的童鞋可参照看看是否能解决,感谢 @wendybubu

@lindexi
Copy link

lindexi commented Mar 26, 2017

设置 "dpi_scale": 1 需要彻底关闭 sublimeText 之后打开

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants