fork download
  1.  
  2. plaintext = u'algor\u00edtimo'
  3.  
  4. encodedtext = plaintext.encode('utf-8')
  5. decodedtext = encodedtext.decode('utf-8')
  6.  
  7. print (encodedtext)
  8. print repr(decodedtext)
Success #stdin #stdout 0.01s 7736KB
stdin
Standard input is empty
stdout
algorítimo
u'algor\xedtimo'