프로그래밍/파이썬1 UnicodeDecodeError: 'cp949' codec can't decode byte 에러 UnicodeDecodeError: 'cp949' codec can't decode byte 0xff in position 0: illegal multibyte sequence에러가 났을 때 file = open("file.txt",encoding="UTF8") 파일을 열때 encoding을 utf8로 바꾸어서 실행하면 해결될 수 있다. UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte 에러가 났을 때 file = open("file.txt",encoding="UTF8",errors="ignore") utf-8 인코딩이 안될 때 errors="ignore"을 함으로써 에러를 무시하고 파일을 열.. 2023. 5. 10. 이전 1 다음