python
[python에러] SyntaxError: Non-UTF-8 code starting with ~
말랑Cow
2022. 12. 25. 15:16
반응형
SyntaxError: Non-UTF-8 code starting with '\xb0' in file D:\sheets api\gspread_test.py on line 6, but no encoding declared; see https://peps.python.org/pep-0263/ for details
editplus에서 파이썬 코딩 후 실행 시 위와 같은 에러 발생.
해결법
: 인코딩 변환
1) 문서 - 파일 인코딩 - 인코딩 변환
문서 우측 하단에 ANSI 형태의 문서인 것을 확인할 수 있음
2) UTF-8 변경
우측 하단 확인 시 UTF-8로 변경됨을 확인
반응형