David Holland wrote:
Apologies,
I did not see that Kent had already answered this !
Thanks Kent I put that encoding and it works fine.
Although surprisingly the other idea :-
write the string with '\xc2'  did not work.

Well I was guessing so I am happy that one of the guesses was correct. What happened when you tried '\xc2'?


Kent


--- David Holland <[EMAIL PROTECTED]> wrote:


Date: Fri, 31 Dec 2004 16:28:59 +0000 (GMT)
From: David Holland <[EMAIL PROTECTED]>
Subject: ASCII encoding for a £ sign
To: tutor@python.org

I ran a program with a "£" sign, and I got this
message :-

"sys:1: DeprecationWarning: Non-ASCII character
'\xc2'
in file birdgame32a.py on line 93, but no encoding
declared; see
http://www.python.org/peps/pep-0263.html
for details'
I looked at the message but I am not sure what
encoding to use for "£".




___________________________________________________________

ALL-NEW Yahoo! Messenger - all new features - even
more fun! http://uk.messenger.yahoo.com







___________________________________________________________ ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to