首页 > 代码库 > Sublime Text 2 SFTP UnicodeDecodeError错误!

Sublime Text 2 SFTP UnicodeDecodeError错误!


右键--》SFTP/FTP -》Sync Remote To Local {作者:半条虫(466814195)}

提示下面错误

An unexpected error occurred, please send the file ~/.config/sublime-text-2/Packages/User/SFTP.errors.log to support@wbond.net




2014-09-02 10:59:26
Traceback (most recent call last):
  File "./sftp/threads.py", line 15, in run_with_except_hook
  File "./sftp/commands.py", line 2473, in run
UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0xe4 in position 5: ordinal not in range(128)


解决

按住Ctrol + Shift + P 输入 sftp:editserver

增加

“remote_encoding”:"utf-8",

Sublime Text 2 SFTP UnicodeDecodeError错误!