Avatar ·

¿Por qué no se entiende el Unicode en Python?

📁 python, IA

script:

  #!/usr/bin/env Python   print   "Hello"   

da un error:

   "/y.sh" , line  2  SyntaxError: Non-ASCII character  '\xd0'   in  file ./y.sh on line  2 , but no encoding declared; see http://www.python.org/pep- 0263 .html  for  details  

¿qué necesita agregarse para informar al intérprete sobre la presencia de un Unicode?