WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-16-2005, 07:02 AM
Johannes Johannes is offline
Member
 
Join Date: Jan 2005
Posts: 143
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
Reply With Quote
  #2  
Old 02-16-2005, 10:44 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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
Reply With Quote
  #3  
Old 02-16-2005, 02:16 PM
Johannes Johannes is offline
Member
 
Join Date: Jan 2005
Posts: 143
Yes it worked, but I just wanted to do it right.
Thank you!
Johannes
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:26 AM.


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