본문 바로가기
Coding/Python

[Python 에러 해결 방법] SyntaxError: Non-UTF-8 code starting with '\xeb' in file \test.py on line 19, but no encoding declared; see https://python.org/dev/peps/pep-0263/ for details

by 포스트it 2023. 6. 25.
반응형

 

[Python 에러 해결 방법] SyntaxError: Non-UTF-8 code starting with '\xeb' in file \test.py on line 19, but no encoding declared; see https://python.org/dev/peps/pep-0263/ for details

다른 쪽에서 잘 작동하던 코드가 이런 에러메세지와 함께 작동이 안되서 찾아보니

해당 코드 맨 윗줄에 이거 한줄만 추가로 해결 하였습니다.

# -*- coding: utf-8 -*-

 

728x90
반응형

댓글