E
E
EVGENY T.2020-02-06 12:51:30
Java
EVGENY T., 2020-02-06 12:51:30

How to output Cyrillic UTF-8 from a Java application to the Windows console?

There is a spring boot application. Source codes and data in it go to UTF-8. When it works under the application server, logs in Russian are thrown into the console.

But when it is launched locally under a Windows machine, there are cracks.

PS The -Dfile.encoding key does not help.

PPS Rewriting source code is not an option.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-02-06
@firedragon

Look at the settings. In my version of windows 10 there is a Utf-8 mode, in addition, you can switch the console to the output of the desired console with the
chcp 1251 command

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question