Sublime Text console not showing lines with accents

后端 未结 3 1243
说谎
说谎 2021-01-04 12:20

In Sublime Text 2 and 3, the console output doesn\'t show the lines with accents on it:

\"Example\"  

3条回答
  •  孤城傲影
    2021-01-04 12:31

    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}\"",
            }
        ]
    }
    

提交回复
热议问题