sublime text 3 에서 python의 출력이 제대로 되지 않을 때 - windows 환경

sublime text 3 에서 python의 출력이 제대로 되지 않을 때 - windows 환경

windows에서는 기본 output이 euc-kr 인데 출력 기본값은 utf-8 이라서 생기는 이슈.

Tools->Build System-> New Build System ->

{  
    "cmd": ["c:/Python33/python.exe", "-u", "-i", "$file"],  
    "selector": "source.python",  
    "shell": true,  
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",  
    "encoding":"cp949",  
    "working_dir": "$file_dir"  
}  

추가.

적당한 이름으로 저장.

python33-build  

이런식으로.

사용할 때는
Tools -> Build System -> python33-build
를 선택해놓고 쓰면 됨.

분류 : 개발


이 문서가 가리키는 다른 문서 목록