Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utils.py read_lines 함수에서 오류가 발생합니다. #3

Open
cmh1027 opened this issue Oct 13, 2021 · 1 comment
Open

utils.py read_lines 함수에서 오류가 발생합니다. #3

cmh1027 opened this issue Oct 13, 2021 · 1 comment

Comments

@cmh1027
Copy link

cmh1027 commented Oct 13, 2021

UnicodeDecodeError: 'cp949' codec can't decode byte 0xed in position 15: illegal multibyte sequence가 발생해서 직접 파일에 들어가서 open함수에 encoding='UTF-8'을 추가했더니 되더라구요
실행환경마다 다른지는 모르겠는데 수정이 필요할 것 같습니다.

@dalbodeule
Copy link

혹시 Python2에서 실행하셨나요? 만약 Python2에서 실행했다면 기본 codec가 ascii (+Korean: cp949 확장) 입니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants