type not typing Russian letters

Asked by Nurbergen

type( 'ываваыва выаыв у всыв вы ') can not type this

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Nurbergen
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

this is not a bug, it is a feature ;-)
see faq 933

this problem is as old a Sikuli itself.

Revision history for this message
Nurbergen (87073525266-w) said :
#2

okey this solved my proplem thanks

Revision history for this message
Sergey Taranenko (setar007) said :
#3

from java.awt.im import InputContext

def getKeyboardLang():
    return InputContext.getInstance().getLocale().toString()

lng = getKeyboardLang()
if lng == "ru_RU":
 type(u'\u043a') # u'\u043a') = rus "к" http://www.fileformat.info/info/unicode/char/search.htm?q=%D0%BA&preview=entity
elif lng == "en_US":
        type("r")