[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Re: [pygame] problem with pygame.font and symbol Â



Have I to do same like
MainFont.render(str(angle)+"Â".encode("utf-8"), True, color)
??
the line above give me an error :( !
PSL!!!!
Vittorio

Il 14/05/2014 18:33, Dominik George ha scritto:
Moin,

the problem is that (assuming angle is 30) I can't see
/angle: 30Â/
but
/angle: 30ÃÂ/
that looks pretty much like an encoding issue. Apparently, Font.render expects 
latin1 encoding.

You could use the str.encode funktion to work around that, finding out how to 
do that is left as an exercise to you ;).

Cheers,
Nik