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

Re: [pygame] Unprintable characters



Assuming these are UTF8 characters, the encoding is backwards compatible with ASCII. Therefore, you should be able to use the ASCII chart to classify non-printable character codes (0-31 and 127).

Gumm

On Tue, Mar 2, 2010 at 1:43 AM, Greg Ewing <greg.ewing@xxxxxxxxxxxxxxxx> wrote:
René Dudfield wrote:
Hi,

I guess you could compare to various K_ variables?

That's probably the most reliable way.

An alternative would be to write a small test program to
find out the unicode chars produced for various keys by
experiment. I'm not sure they would be the same on all
platforms, though.

--
Greg