cp949' codec can't decode byte 0xec in position 84: illegal multibyte sequence 오류 해결 json파일 가져올때
json파일을 가져오는 중에 cp949' codec can't decode byte 0xec in position 84: illegal multibyte sequence 이란 오류가 발생했다 open('./도서.json') as file: realData = json.load(file) # 'rt', encoding='UTF8'를 추가해서 실행하면 된다. open('./도서.json', 'rt', encoding='UTF8') as file: realData = json.load(file) cp949 코덱으로 인코딩 된 파일을 읽을때 문제가 생긴다고 한다. 출처 : https://airpage.org/xe/language_data/20205
2021.06.30