반응형
말랑Cow
IT
말랑Cow
전체 방문자
오늘
어제
  • 분류 전체보기 (165)
    • Linux (33)
    • Windows (6)
    • Network (7)
    • Hardware (10)
    • Zabbix (13)
    • python (9)
    • script (0)
    • docker (16)
    • NAS (1)
    • DB (3)
    • php (33)
    • jQuery (1)
    • 정보보안기사 (0)
    • Ajax (1)
    • Javascript (21)
    • DELL (0)
    • HPE (0)
    • Secui (0)
    • AWS (2)
    • Elastic (0)
    • 보안 (1)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • 도커
  • 리눅스
  • php
  • CentOS
  • 서버
  • Linux
  • 자빅스
  • jQuery
  • php 클래스
  • docker
  • 모니터링
  • ZABBIX
  • php 객체
  • Shell
  • 자바스크립트
  • JavaScript
  • 네트워크
  • 파이썬
  • bash
  • Python
hELLO · Designed By 정상우.
말랑Cow

IT

[python에러] SyntaxError: Non-UTF-8 code starting with ~
python

[python에러] SyntaxError: Non-UTF-8 code starting with ~

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로 변경됨을 확인

반응형

'python' 카테고리의 다른 글

Google Sheets API 를 통해 스프레드시트 데이터 읽기/쓰기  (0) 2022.12.29
[python에러] TypeError: can only concatenate str (not "NoneType") to str ~  (0) 2022.12.28
[centos 7] python 3.7 install  (0) 2022.05.31
[python] 4. 리스트/사전/튜플/세트/자료구조변경  (0) 2021.03.30
[python] 3. 문자열처리함수/문자열포맷/역슬러쉬  (0) 2021.03.29
    'python' 카테고리의 다른 글
    • Google Sheets API 를 통해 스프레드시트 데이터 읽기/쓰기
    • [python에러] TypeError: can only concatenate str (not "NoneType") to str ~
    • [centos 7] python 3.7 install
    • [python] 4. 리스트/사전/튜플/세트/자료구조변경
    말랑Cow
    말랑Cow

    티스토리툴바