새소식

AI LAB/🦜 TTS

12. cp949' codec can't decode byte 0xec in position 0: illegal multibyte sequence

  • -
728x90

에러명1 : cp949' codec can't decode byte 0xec in position 0: illegal multibyte sequence

에러명2 : TypeError: an integer is required (got type str)

 

해결방법 : open(path, "r+", encoding = "utf-8") as f:

파이썬의 open에 encoding = "utf-8"을 넣어보세요 ^  ^

 

추가로 질문이 있으시면 댓글남겨주세요. 감사합니다.

반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.