|
-
Nov 11th, 2017, 05:09 PM
#1
Thread Starter
Member
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
-
Nov 11th, 2017, 05:36 PM
#2
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
-
Nov 14th, 2017, 10:07 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|