一、UnicodeEncodeError: 'gbk' codec can't encode character '\xbb' in position 12305: illegal multibyte sequence
原始程序
f = open(FileName, "a")
f.write(message)
在写入一些字符时,报错,
参考地址:
https://blog.csdn.net/Dillon2015/article/details/53204955
https://blog.csdn.net/hw140701/article/details/52044905
解决方法:
f = open(FileName, "a", encoding='gb18030')
f.write(message)