[Tutor] Fwd: ASCII encoding for a £ sign
David Holland
davholla2002 at yahoo.co.uk
Fri Dec 31 17:42:10 CET 2004
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.
--- David Holland <davholla2002 at yahoo.co.uk> wrote:
> Date: Fri, 31 Dec 2004 16:28:59 +0000 (GMT)
> From: David Holland <davholla2002 at yahoo.co.uk>
> Subject: ASCII encoding for a £ sign
> To: tutor at 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
More information about the Tutor
mailing list