Answer the question
In order to leave comments, you need to log in
Sublime Text 3 + Python 3 = NOT UTF-8. Why?
The notorious [Decode error - output not utf-8] under Win.
Sublime is a curiosity for me, I have been studying Python for several months.
Procedure from scratch:
- installed Sublime Text 3
- downloaded Jedi
- Tools -> Build System -> Python
I run a simple code with Cyrillic text: NOT UTF-8.
I looked at the Sublime forums, the devil will break his leg there. Found the intended solution in the form of a new Build System. I gave the file a clear name, I wrote in the file itself:
{
"cmd": ["C:\\python33\\python.exe", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
"encoding": "utf-8"
. The result is the same. Added to the beginning of the code # -*- coding: utf-8 -*-
. Without changes. {
"shell_cmd": "python -u \"$file\"",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"encoding": "cp1251"
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question