Changing a language in the middle of a python program

504 views Asked by At

I have a program which processes text using pyhook. Since I also use Hebrew I tried seeing what will happen if I type in Hebrew. It seems like if when the program starts the PC is on Hebrew also if I change my language it will understand it as Hebrew and vice-versa with English. I also looked at what the Ascii value for the Hebrew letters comes out as and it seems to be wrong also by the Hebrew Ascii and also by the Unicode numbers.. Can anyone help me solve this problem please?

def OnKeyboardEvent(event):
global start
global text
print text
text += chr(event.Ascii)
print event.Ascii

the prints are there for checking up
Thank you

0

There are 0 answers