how to print chinese word in my code.. using python
Posted
by zjm1126
on Stack Overflow
See other posts from Stack Overflow
or by zjm1126
Published on 2010-04-22T03:18:29Z
Indexed on
2010/04/22
3:23 UTC
Read the original article
Hit count: 227
this is my code:
print '??'.decode('gb2312').encode('utf-8')
and it print :
SyntaxError: Non-ASCII character '\xe5' in file D:\zjm_code\a.py on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
how to print '??'
thanks
© Stack Overflow or respective owner