diff --git a/coding.py b/coding.py new file mode 100644 index 0000000..0d05452 --- /dev/null +++ b/coding.py @@ -0,0 +1,9 @@ +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" \ No newline at end of file