SyntaxError: Non-UTF-8 code starting with '\xc0' in file ~.py on line 3, but no encoding declared; see

CODEDRAGON Development/Python

반응형

   

   

오류메시지

SyntaxError: Non-UTF-8 code starting with '\xc0' in file C:\Users\codedragon\git\study_Python\studyPython\ch11-C\Ex01\lettertest.py on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

   

   

해결방법

소스코드 파일 선택 > 마우스 우클릭 > 왼쪽창의 Resource 항목 선택 >

   

Text file encoding영역에서

인코딩 방식을 UTF-8로 변경 >

OK

반응형