原文:Sublime Text3 運行Python 出現Error:Decode error - output not utf-8

問題描述: Sublime Text 在build Python時,如果python源代碼輸出有中文,例如 print 中文 ,Sublime Text 會報 Decode error output not utf 分析: 在Sublime Text 里,新建一個python源碼文件,代碼如下為: View Code ctrl B 進行build該文件。默認輸出應該是: cp cp 但是報 De ...

2018-04-12 16:08 0 2524 推薦指數:

查看詳情

Sublime Text: [Decode error - output not utf-8]

今天編譯Python時, 輸出窗口信息出現: [Decode error - output not utf-8] [Decode error - output not utf-8] 發現是print不支持中文字符的輸出, 需要修改python ...

Fri Jul 05 17:02:00 CST 2013 1 10510
Sublime python Decode error - output not utf-8

打開安裝目錄D:\developTool\Sublime Text 3\Packages 找到Python.sublime-package,用壓縮工具打開 找到Python.sublime-build,並打開 並添加"encoding":"cp936"這一行,保存即可 ...

Thu Mar 30 17:14:00 CST 2017 0 2483
sublime ruby [Decode error - output not utf-8] 錯誤

今天用sublime3 寫ruby,然后最簡單的 pust "hello" 都出不來, ctrl + b的時候報錯。注:win7下 [Decode error - output not utf-8][Finished in 0.2s with exit code 1][shell_cmd ...

Tue Jul 30 02:42:00 CST 2013 0 7808
python3:(unicode error) 'utf-8' codec can't decode

文本編輯器:vim、notepad++ 報錯:SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xb4 in position 0:invalid start byte 說明:我一開是是使用vim編輯器寫python程序 ...

Tue Mar 24 04:32:00 CST 2020 0 1074
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM