아미(아름다운미소)

'cp949' codec can't encode character '\xa0' in position 357: illegal multibyte sequence error 본문

랭귀지/PYTHON

'cp949' codec can't encode character '\xa0' in position 357: illegal multibyte sequence error

유키공 2022. 9. 5. 16:29
'cp949' codec can't encode character '\xa0' in position 357: illegal multibyte sequence 에러시

 

기존소스

f = open('test.txt', 'w')

변경소스

f = open('test.txt', 'w', encoding='UTF-8')
0 Comments
댓글쓰기 폼