에러일기
[Python] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 2: invalid start byte
yn98
2024. 11. 30. 21:47
파일의 인코딩 형식이 Python에서 기본적으로 사용하는 UTF-8과 일치하지 않아서 발생
csv 파일을 utf-8로 변경해서 수정완료
++추가!!!
그러면 글이 깨진다 .. 당연한건데
나같은 경우는 csv 파일의 인코딩 형식을 맞췄다.
with open(file_path, mode='r', encoding='ANSI') as file: