PDA

View Full Version : Unicode Support?


Johannes
02-16-2005, 07:02 AM
Hi,
I've been trying to use a degree-sign in my User Interface.


'°' works but I get deprecation-warnings.

__main__:12: DeprecationWarning: Non-ASCII character '\xb0' in file 050215_GreyBallsFrictiondist3WithoutSoccer2.py on line 1190, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

u'\N{DEGREE SIGN}' does not work

What would you recommend? Or do I have to use 'degree'

Johannes

farshizzo
02-16-2005, 10:44 AM
It is just a warning, your script should still work. If you would like to get rid of the warning then place the following comment on the first line of your script:# coding: UTF-8

Johannes
02-16-2005, 02:16 PM
Yes it worked, but I just wanted to do it right.
Thank you!
Johannes