Avatar ·

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

📁 python, IA

"

Script:

#! /usr/bin/env python    print ""Привет"" 

Da un error:

File ""./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/peps/pep-0263.html for details

¿Qué hay que agregar para indicarle al intérprete la presencia de Unicode?

"