【Python】UnicodeEncodeError: ‘gbk‘ codec can‘t encode character ‘xxx‘ in position xxx解决

Error:

Illegal multibyte sequence

UnicodeEncodeError: 'gbk' codec can't encode character '\xf6' in position 156: illegal multibyte sequence

This means that the gbk codec cannot encode the character at position 156, an illegal multibyte sequence

Encountered this encoding problem again,

Specify the encoding, plus encoding, I specify utf-8 here.

 

Guess you like

Origin blog.csdn.net/weixin_44566432/article/details/107918324