New submission from Vizcaynot: When trying the tutorial example about unicode I have: >>> "Äpfel".encode('utf-8') File "<stdin>", line 1 SyntaxError: (unicode error) unexpected code byte
I live in a latin american country so I need to do: >>> "Äpfel".decode('latin-1).encode('utf-8') File "<stdin>", line 1 >>> but the indentation " >>>" is new for me, so I attempt the next: >>> a="Äpfel".decode('latin-1).encode('utf-8') File "<stdin>", line 1 >>> a b'\xc3\x84pfel' >>> print (a) Äpfel >>> Is this necessary to do correction to the tutorial? is this normal the presence of " >>>" that appears indented once I assign the value to variable a? Thanks!! ---------- components: Unicode messages: 55598 nosy: Viscaynot severity: normal status: open title: Unexpected results in Tutorial about Unicode type: behavior versions: Python 3.0 __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1092> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com