Created
August 18, 2015 09:41
-
-
Save lseongjoo/b277887a638381951af5 to your computer and use it in GitHub Desktop.
콘솔의 인코딩 정보를 활용해 명령줄 인자를 유니코드로 변환하기
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: utf-8 | |
# @LeeSeongjoo | |
import sys | |
if __name__ == '__main__': | |
# 명령줄 인자를 유니코드로 변환 | |
uargv = [arg.decode(sys.stdin.encoding) for arg in sys.argv[1:]] | |
print(uargv) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment