반응형
1. 인코딩 에러
(debug를 진행 할 때 나타나는 에러였다.)
Fatal Python error: init_stdio_encoding: failed to get the Python codec name of the stdio encoding
Python runtime state: core initialized
LookupError: unknown encoding: x-windows-949
Current thread 0x00003934 (most recent call first):
<no Python frame>
윈도우 기준 : Ctrl + alt +s 를 눌러 설정창에 진입한다 (메뉴 창으로는 : File > Settings)
셋팅 창을 띄우고나면, 검색 영역에 "encoding"을 검색하여
Encoding을 바꿀수 있는 메뉴를 확인 할 수 있다.
1-1 ) Editor > File Encodings > Project Encoding을 "UTF-8"로 변경해준다.
1-2 ) 1-1로도 안되는경우, Editor > General > Console > Default Encoding을 "UTF-8"로 변경한다.
728x90
반응형
'Programming > Python' 카테고리의 다른 글
[FastAPI] Error 모음집 (0) | 2023.01.18 |
---|---|
[에러] 파이썬 가상환경 보안 에러 (0) | 2023.01.13 |
[FastAPI] 응답 모델 (0) | 2022.08.13 |
[FastAPI] 요청 본문 (0) | 2022.08.12 |
[FastAPI] 쿼리 매개변수 (0) | 2022.08.11 |