I think there are two ways to solve this: - write the string with '\xc2' instead of '£'; it has the same meaning - put the coding declaration as described in PEP 263
You don't say what OS or locale you are using, but since your email is in UK probably you want # -*- coding: iso-8859-1 -*-
Kent
David Holland wrote:
I am trying to use a program that usea s '£' symbolon the pygame screen and I get this message :- 'sys:1: DeprecationWarning: Non-ASCII character '\xc2' in file birdgame29e.py on line 88, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details line 86 '
Now I did look that however I am not sure a) how to do this and b) what encoding to use. Can anyone help ?
___________________________________________________________ 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