Menu

PC-BASIC does not accept Cyrillic letters

Anonymous
2017-03-21
2017-03-21
  • Anonymous

    Anonymous - 2017-03-21

    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.

     
  • Rob Hagemans

    Rob Hagemans - 2017-03-21

    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.

     
  • Anonymous

    Anonymous - 2017-03-27

    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).

     
  • Rob Hagemans

    Rob Hagemans - 2017-03-28

    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 :)

     
  • Serge

    Serge - 2017-03-28

    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.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.