Last active
August 29, 2015 14:18
-
-
Save allieus/e96c19f9eac4406ca249 to your computer and use it in GitHub Desktop.
Sublime Text 3 에서 파이썬2 실행 설정 : 아래 빌드스크립트로 실행 시, 유니코드로 한글출력이 잘 됩니다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// Preferences -> Browser Packages ... 를 선택하면, 윈도우탐색기(혹은 파인더) 로 Packages 디렉토리가 뜹니다. | |
// Users 디렉토리에 본 파일을 복사해주세요. | |
// 맥에서는 $HOME/Library/Application Support/Sublime Text 3/Packages/User/Python-UTF8.sublime-build 과 같은 경로가 됩니다. | |
// 윈도우에서는 $HOME/Application Data\Sublime Text 3\Packages\User\Python-UTF8.sublime-build 과 같은 경로가 됩니다. | |
// 이제 Tols -> Build System 에서 Python-UTF8 을 선택하고, 실행할 파이썬 스크립트를 연 후, Ctrl+B 를 눌러봅니다. | |
// 한글이 잘 출력되면 OK !!! | |
{ | |
"shell_cmd": "python -u \"$file\"", | |
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", | |
"selector": "source.python", | |
"env": {"PYTHONIOENCODING": "utf8"} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf8 | |
print(u"안녕 세상아") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment