Encoding (1) 썸네일형 리스트형 [Python] UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 17533: illegal multibyte sequence - 증상 # CP949로 인코딩 되어있는 파일 Open시 with open(path, 'r') as f: f = f.read() print(f) ''' Traceback (most recent call last): Error Message... UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 17533: illegal multibyte sequence ''' - 해결 # Open시 Parameter(mode, encoding)를 통해 해결 # mode 'rt' = default with open(path, 'rt', encoding='UTF-8') as f: f = f.read() print(f) ''' File Read And .. 이전 1 다음