Cyrillic input

Malte Brill revolution at derbrill.de
Tue May 31 04:22:54 EDT 2011


Hi all,

for the first time I need to deal with cyrillic input (and reading from text files) in liveCode. Now I am a bit stumped.

When I switch my keyboard to russian, the text field does seem to automagically recognize that I am typing in cyrillic. The glyphs show up. So far so good. If I now try to feed the field from a text file (encoded in UTF-8) I fail miserably. The text does not show up. What do I need to do to make this work?

Next problem. I have scriped some password fields. These work fine for normal ASCII. I just set the imagesource for each char and this is ok.
However, as soon as I use cyrillic input, rawkeydown does not seem to fire anymore. If I then try to hide my glyphs that have been input, I end up with 2 imagesources per glyph (which is sensible, as each char is made up of 2 bytes.) 

Has anybody tackled situations similar to this? Any pointers much appreciated.

Malte



More information about the use-livecode mailing list