Hi, thanks for getting in touch! PC-BASIC can handle Cyrillic (and a few other writing systems), it's a matter of choosing a codepage with the codepage= option inPCBASIC.INI or on the command line. For example, to use DOS Cyrillic 2 codepage 866, you'd use codepage=866. See http://robhagemans.github.io/pcbasic/doc/#codepages for a list of supported codepages; there are for example the Cyrillic codepages 855, 866, KOI-8, MIK and a few others. See an example in Russian in the screenshot.
Yes, it works now (after I have chosen the codepage).
Besides, your example has a spelling error in Cyrillic text. And also it does not test the 'INPUT'. So I have a better example. My example looks like this.
See the attachment for the Cyrillic version (I have no idea how to extract the plain-text from GW-BASIC and PC-BASIC format, so I attach a ZIP-archive with the BAS-file).
Glad that it works now. For future reference, you can save programs as plaintext with SAVE "NAME", A. Thanks for the test program - the example shown was just a quick cut-and-paste as a proof of concept and in fact I don't spreak Russian,so that would explain the spelling error :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "[CLOSED] Bug reports" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
The original GW-BASIC 3.23 works with Cyrillic letters in strings. It can do input and output. But PC-BASIC cannot work Cyrillic letters.
Hi, thanks for getting in touch! PC-BASIC can handle Cyrillic (and a few other writing systems), it's a matter of choosing a codepage with the
codepage=
option inPCBASIC.INI
or on the command line. For example, to use DOS Cyrillic 2 codepage 866, you'd usecodepage=866
. See http://robhagemans.github.io/pcbasic/doc/#codepages for a list of supported codepages; there are for example the Cyrillic codepages 855, 866, KOI-8, MIK and a few others. See an example in Russian in the screenshot.View and moderate all "[CLOSED] Bug reports" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Thank you.
Yes, it works now (after I have chosen the codepage).
Besides, your example has a spelling error in Cyrillic text. And also it does not test the 'INPUT'. So I have a better example. My example looks like this.
10 INPUT "Enter your name: ", N$
20 PRINT "Hello, " + N4 "!"
See the attachment for the Cyrillic version (I have no idea how to extract the plain-text from GW-BASIC and PC-BASIC format, so I attach a ZIP-archive with the BAS-file).
Glad that it works now. For future reference, you can save programs as plaintext with
SAVE "NAME", A
. Thanks for the test program - the example shown was just a quick cut-and-paste as a proof of concept and in fact I don't spreak Russian,so that would explain the spelling error :)Rob, it seems that my online (English) version of the example is wrong. I should have written this.
10 INPUT "Enter your name: ", N$
20 PRINT "Hello, " + N$ + "!"
I just didn't noticed that I have typed '4' instead of '$'.
But the binary (Cyrillic) version from the attachment is correct.