Sublime Text 2 SFTP UnicodeDecodeError Error !, Unicodedecodeerror
Right-click --> SFTP/FTP-> Sync Remote To Local {Author: Half worm (466814195 )}
The following error message is displayed:
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_effect_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)
Solution
Press and hold Ctrol + Shift + P to input sftp: editserver
Join
"Remote_encoding": "UTF-8 ",
An error is reported when sublime text2 executes python,
. I remember that the new file in sublime text2 is saved in ascii code,
1. Check whether the file storage format is UTF-8 (notepad ++ can be used to convert non-UTF-8 files into UTF-8 files for saving)
2. Whether to add the following code at the beginning of the python file: #-*-coding: UTF-8 -*-
If both are right, there will be no problem.
Sublime text 2 prompts an error. If you understand the error, see the following figure.
Sublime text 2 editor and compiler, but the two cannot be used at the same time, that is, I use the editor to compile Windows and use G ++. I think cygwin is better, the editor uses codeblock, vim, VS, and other options, IVhdyD