인코딩이 달라서 그렇다
path2 = path+'/레트로/test.json'
with open(path2,'r', encoding='utf-8') as f:
json_data=json.load(f)
print(json.dumps(json_data))
만약 에러가 반대로 난다면
'utf-8' codec can't decode byte...
인코딩을 cp949로 바꿔주자
'개발환경 > jupyter notebook' 카테고리의 다른 글
[jupyter notebook] unexpected indent (0) | 2023.01.11 |
---|---|
_xsrf' argument missing from post 오류 (0) | 2022.01.27 |