Results 1 to 3 of 3

Thread: Capturing letters typed on a Russian keyboard

  1. #1

    Thread Starter
    Member
    Join Date
    May 2006
    Posts
    61

    Capturing letters typed on a Russian keyboard

    On a US keyboard, one could have code like :

    If Lettertyped = "A" then ....

    How does one go about capturing letters on a Russian keyboard?

    i.e.

    If lettertyped = "Л" then...
    If lettertyped = "Щ" then...

    Any help would be appreciated.

    David

  2. #2
    Fanatic Member Spooman's Avatar
    Join Date
    Mar 2017
    Posts
    868

    Re: Capturing letters typed on a Russian keyboard

    Dave

    I'm not much of a character-set kinda guy, but ..
    for starters, maybe this Wiki link

    https://en.wikipedia.org/wiki/Cyrill...ipt_in_Unicode

    Spoo

  3. #3
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    6,167

    Re: Capturing letters typed on a Russian keyboard

    @kembreg: It's basicly the same as on US keyboard. The problem is that you have to *compile* your sources w/ machine code page set to cp1251 for "Л" and "Щ" to be compiled correctly to unicode in the binary because in the sources these are single-byte encoded in current code page.

    Another option is to replace these string literals with Chr$ or ChrW$ as to be independant from build machine code page i.e. keep default cp1252 for US locale on build machine and still be able to operate correctly at run-time on locales w/ cp1251 code page set.

    cheers,
    </wqw>

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width