Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- JSON
- Docker
- C++
- Selenium
- C#
- VS Code
- paramiko
- windows forms
- Linux
- Visual Studio
- error
- LIST
- label
- pip
- 컨테이너
- SSH
- 채보
- 핑거스타일
- YOLO
- 기타 연주
- Numpy
- ubuntu
- pandas
- C
- Python
- 오류
- pytorch
- 프로그래머스
- mysql
- OpenCV
Archives
- Today
- Total
목록UnicodeDecodeError (1)
기계는 거짓말하지 않는다
Python UnicodeDecodeError
파일을 읽어올 때 한글이 깨져 인코딩을 주고 불러오는 경우, # UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb9 in position 0: invalid start byte 와 같은 오류를 볼 때가 있다. 파일의 인코딩이 달라 디코드 할 수 없다는 인코딩 오류이다. 파일을 불러올 때 encoding="euc-kr", encoding="cp949" 와 같은 다른 인코딩 옵션을 주면 된다. 파일 인코딩 형식을 알 수 없다면 찾거나 변경해야 한다.
Python
2021. 7. 10. 17:38