엄지월드

Atom 스크립트 한글 깨지는 현상 본문

Python

Atom 스크립트 한글 깨지는 현상

킨글 2017. 12. 10. 17:49
반응형

크롤링 예제를 따라하던 중 

Atom에서 한글이 깨지는 현상 발생 하였다... 



구글링 결과 상단에

import sys

import io

sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')

sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')

를 추가해 주면 된다고 한다!!



Comments