A
A
alekssamos2018-04-08 10:21:37
Character encoding
alekssamos, 2018-04-08 10:21:37

Cyrillic and encoding in MS-DOS QBasic?

I launch the BASIC, something like this window appears.
5ac9c0274c68e852009710.jpeg
I start writing in Cyrillic, it squeaks with jerky beeps (signals) and does not write. I save it to a file, open it in a regular normal notepad, write PRINT "проверка", go back, run it, get: "╨┐╤А╨╛╨▓╨╡╤А╨║╨░".
I write: PRINT "╨┐╤А╨╛╨▓╨╡╤А╨║╨░", I receive: "тХитФРтХд╨РтХитХЫтХитЦУтХитХбтХд╨РтХитХСтХитЦС". Stop. This is already overkill.
So what encoding should the file be in and why are Cyrillic not entered in the editor?
But if you write INPUT, enter the Cyrillic alphabet there, then it will work, it PRINTwill output correctly.

We study it at school. Old man, there's nothing you can do

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-04-08
@NeiroNx

It's CP866 encoded. Only some notepads are able to work with it - try Notepad++
in the console, restarting the program, you can change the encoding to CP1251:
IMHO, you should study python better - it is just as simple.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question