Are you using python 2.7? Python 3 handles utf-8 naturally but for python 2.7 you have to put
#-*- coding: utf-8 -*-
under the shebang#!/usr/bin/env python # -*- coding: utf-8 -*- .....code here.....