With file? Try Chardet(https://pypi.python.org/pypi/chardet) Change Windows command line codepage to utf-8 (Need to change font) chcp 65001 Want to get back?