From: Poul R. <Pou...@sk...> - 2011-10-06 18:10:55
|
After upgrading to python 3.1 I cannot put Danish characters in display titles in the same manner as before when I used \346\370\345\306\330\305 as æøåÆØÅ (not sure how the last 6 characters are displayed on your screen unless it has been set up to display Danish characters...). The print commands in the example below work but the title is far from what I hope. Poul Riis from visual import * print("\346\370\345") #æøå print("\306\330\305") #ÆØÅ print(chr(230)+chr(248)+chr(229))#æøå print(chr(198)+chr(216)+chr(197))#ÆØÅ field=display(title="\346\370\345"+"\306\330\305" +chr(230)+chr(248)+chr(229)+chr(198)+chr(216)+chr(197), width=900,height=900,x=500,y=0,forward=(-5,-1,-0.5),up=(0,0,1), center=(0,0,0),background=(1,1,1),fullscreen=0,ambient=0.8) xyplane=box(pos=(1,1,-0.05),axis=(0,0,1), length=0.1, height=2, width=2,color=color.green,material=materials.wood,opacity=0.2) xzplane=box(pos=(1,-0.05,1),axis=(0,1,0), length=0.1, height=2, width=2,color=color.blue,material=materials.marble,opacity=0.2) yzplane=box(pos=(-0.05,1,1),axis=(1,0,0), length=0.1, height=2, width=2,color=color.red,material=materials.blazed,opacity=0.2) |