UnicodeEncodeError: 'gbk' codec can't encode character 'ufffd' in position 3: i(
Posted mc-curry
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了UnicodeEncodeError: 'gbk' codec can't encode character 'ufffd' in position 3: i(相关的知识,希望对你有一定的参考价值。
程序员多了,什么错误都能找到
我还在代码里换了好几次编码,后来才知道
vscode使用的是cmd,所以需要修改cmd的编码
参考
https://blog.csdn.net/renshareck/article/details/79091798
以上是关于UnicodeEncodeError: 'gbk' codec can't encode character 'ufffd' in position 3: i(的主要内容,如果未能解决你的问题,请参考以下文章
UnicodeEncodeError: 'ascii' codec can't encode character u'u5929' in position 2(
UnicodeEncodeError: 'ascii' codec can't encode characters
UnicodeEncodeError: 'ascii' codec can't encode characters in
UnicodeEncodeError: 'gbk' codec can't encode character 'xbb' in position
UnicodeEncodeError: 'ascii' codec can't encode character...的解决方法
UnicodeEncodeError: 'gbk' codec can't encode character 'u25aa' in position 15: (