WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Unicode Support? (https://forum.worldviz.com/showthread.php?t=292)

Johannes 02-16-2005 07:02 AM

Unicode Support?
 
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:
Code:

# coding: UTF-8

Johannes 02-16-2005 02:16 PM

Yes it worked, but I just wanted to do it right.
Thank you!
Johannes


All times are GMT -7. The time now is 10:02 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC