@
@
@ _ @2021-09-10 19:20:12
Delphi
@ _ @, 2021-09-10 19:20:12

How to display Russian text in Delphi 10.4.2?

When I write plain Russian text in Rad Studio on Delphi 10, I get ???. How to fix?

spoiler
613b8e4b74b64377225107.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hemul GM, 2021-09-10
@DaniilOLD

You have problems with the settings in the OS. By default, the environment collects as it should and displays it too. You probably need to force the encoding

uses 
  Winapi.Windows;
//Переключение консоли на кодовую страницу CP1251 (Windows-1251).
SetConsoleCP(1251);
SetConsoleOutputCP(1251);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question