Sublime Text 2 SFTP UnicodeDecodeError Error !, Unicodedecodeerror

Source: Internet
Author: User

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
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.