This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Viscaynot
Recipients Viscaynot
Date 2007-09-03.03:36:47
SpamBayes Score 0.019320507
Marked as misclassified No
Message-id <1188790607.8.0.739401966069.issue1092@psf.upfronthosting.co.za>
In-reply-to
Content
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!!
History
Date User Action Args
2007-09-03 03:36:47Viscaynotsetspambayes_score: 0.0193205 -> 0.019320507
recipients: + Viscaynot
2007-09-03 03:36:47Viscaynotsetspambayes_score: 0.0193205 -> 0.0193205
messageid: <1188790607.8.0.739401966069.issue1092@psf.upfronthosting.co.za>
2007-09-03 03:36:47Viscaynotlinkissue1092 messages
2007-09-03 03:36:47Viscaynotcreate