[Tutor] Fwd: ASCII encoding for a £ sign

Kent Johnson kent37 at tds.net
Sat Jan 1 04:00:36 CET 2005


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 <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
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
> 


More information about the Tutor mailing list