class World:
def init(self): #This is the initialization we had before
self.title = OnscreenText( #Create the title
text= u’\u6C49\u5B57’,
style=1, fg=(1,1,1,1), pos=(0.8,-0.95), scale = .07)
w = World()
run()
The wrong is: ascii codec cannot encode characters rdinal not in range<128>
All that error message sounds like Panda3D is ASCII-only, though I might be wrong…
I never even tried German special characters (like Umlauts), probably out of curiosity I should… 128 isn’t terribly much if this were in fact the limit (4bit).
Any plans on adding Unicode support (provided that it’s not there yet)?
class World:
def __init__(self):
#This is the initialization we had before
self.title = OnscreenText( #Create the title
text= ('test \'%c\'' % ( 191 ) ),
style=1, fg=(1,1,1,1), pos=(0.8,-0.95), scale = .07)
w = World()
run()
Good to see that Panda3D does already support Unicode! It makes sense, tho, otherwise a game to teach Japanese in Panda would probably not be too easy to do…