a = u"codificación" print a # u"codificación" print type(a) # b = a.encode("utf-8") print b # codificación # But it depends on your terminal settings print type(b) # c = b.decode("utf-8") print type(c) # print c # u"codificación"