Python 3 encounter [Decode error - output not utf-8] (sublime text 2) Python 3 encounter [Decode error - output not utf-8] (sublime text 2) tkinter tkinter

Python 3 encounter [Decode error - output not utf-8] (sublime text 2)


You are using ‘’ and “” to represent strings, but these aren't the correct characters. You have to replace them with '' and "", respectively.

See the String literals section of the lexical analysis reference for furter information about the correct syntax.


Open Python.sublime-build, and add a line "encoding":"cp936", Save the file.

Locate Python.sublime-build at:

Sublime Text 2 : SublimeText2\Data\Packages\Python\Python.sublime-buildSublime Text 3 :SublimeText3\Packages\Python.sublime-package