sublime 执行print带有中文时出错Decode error - output not utf-8

解决:

打开安装目录
D:\developTool\Sublime Text 3\Packages

找到Python.sublime-package,用压缩工具打开


找到Python.sublime-build,并打开

并添加"encoding":"cp936"这一行,保存即可

原文地址:https://www.cnblogs.com/bzdmz/p/10329881.html

时间: 2024-08-04 17:27:55

sublime 执行print带有中文时出错Decode error - output not utf-8的相关文章

用sublime Text2 运行python报错问题 Decode error - output not utf-8_ 解决办法

数据库查询时,查询数字或者英文可以,查询中文时出错

数据库查询时,查询数字或者英文可以,查询中文时出错:提示????????????:select * from szdbdb_userdata where        truename='????' Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation '='12670 解决办法:一般网上会说是编码问题,在配置文件my.ini修改数据库编码.当把

执行nova-manage db sync时出错,提示’Specified key was too long; max key length is 1000 bytes’

执行nova-manage db sync时出错: 2012-03-24 14:07:01 CRITICAL nova [-] (OperationalError) (1071, ‘Specified key was too long; max key length is 1000 bytes’) ‘\nCREATE TABLE user_project_association (\n\tcreated_at DATETIME, \n\tupdated_at DATETIME, \n\tdele

python sublime3 [Decode error - output not utf-8] 中文显示问题

一般来说,这个是编码问题 祭出大杀器,就能解决问题 # coding: utf-8 import sys reload(sys) sys.setdefaultencoding("utf-8") print '你好' >>>你好 不过今天说的是另一种问题 在sublime里面运行是 [Decode error - output not utf-8] cmd下运行就没问题 代码如下 # coding: utf-8 import sys reload(sys) sys.se

sublime 出现 [Decode error - output not utf-8]

出现以下的错误: Sublime Text 2/3: [Decode error - output not utf-8] 原因: 是因为,sublime 的Java 插件中没有明确 编码格式, 解决方案: 找到你的Packages->java.sublime-package 用 winrar 打开找到 JavaC.sublime-build 在倒数第二行添加 ,"encoding":"cp1252" sublime 出现 [Decode error - out

maven install 读取jar包时出错;error in opening zip file

错误信息: [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project qchat-common: Compilation failure [ERROR] F

Sublime Text 2报“Decode error - output not utf-8”错误的解决办法

[Decode error - output not utf-8] [Decode error - output not utf-8] 应该怎么办? 这是因为python配置的编译环境的编码不正确,因为默认的Sublime Text 2的编码是UTF-8. 很简单,解决办法如下: [解决办法]修改Python.sublime-build配置文件,添加如下行: "encoding":"cp936" (注意在上一行结束加逗号)(如图所示)

Sublime text 2/3 [Decode error - output not utf-8] 完美解决方法

分类: 其他2014-05-12 09:52 8063人阅读 评论(9) 收藏 举报 sublime text有时运行会输出以下错误信息: [Decode error - output not utf-8]或者[Decode error - output not gbk] 错误信息意思就是脚本输出的信息不是某种指定编码. 指定的编码一般在XX.sublime-build里,比如ruby.sublime-build的内容为: [python] view plaincopy { "shell_cmd

[Decode error - output not utf-8] lua 使用string.sub

对已知中文字符串进行分割,以“(”和“)”来截取字符串: str1="白雪皑皑雪橇行,胡子老人把人惊(落花无声)"; print(str1); num1 = string.find(str1,'(') num2 = string.find(str1,')') print(num1,":",num2); print(string.sub(str1,num1,num2)) 运行输出: [Decode error - output not utf-8] 在网上搜有关 no