In Sublime Text 2 and 3, the console output doesn\'t show the lines with accents on it:
It seems fixed with Sublime Text 3.2.2 build 3211: when I open test.py
containing:
print("1")
print("á")
print("2")
then when building with CTRL+B (using Python 3.6), then it works normally, out-of-the-box.
Remark: the default Python.sublime-build
is indeed now:
{
"shell_cmd": "python -u \"$file\"",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"env": {"PYTHONIOENCODING": "utf-8"},
"variants":
[
{
"name": "Syntax Check",
"shell_cmd": "python -m py_compile \"${file}\"",
}
]
}