Comment on Making Sense of Python UnicodeComments−leecho0OP16ybonus tip:don't forget to add: # -*- coding: utf-8 -*- also, if you're using vim, make sure your encoding as well as your fileencoding are correct (they're different): set encoding=utf-8 set fileencoding=utf-8−baq16y> set encoding=utf-8this will cause problems on windows.
Comments
bonus tip:
don't forget to add:
also, if you're using vim, make sure your encoding as well as your fileencoding are correct (they're different):> set encoding=utf-8
this will cause problems on windows.