백엔드/Python
[python error] 'euc_kr' codec can't decode byte 0xbf in position 2: illegal multibyte sequence
작은소행성
2022. 2. 1. 14:23
python 에서 csv 를 열 때 encoding 에서 생기는 오류로 utf-8 을 사용해준다.
'cp949' codec can't decode byte 0xbf in position 2: illegal multibyte sequence
'euc_kr' codec can't decode byte 0xbf in position 2: illegal multibyte sequence
df.to_csv("/home/test.csv", encoding='utf-8')
반응형