V
V
Vlad_Radigin2018-05-01 13:52:29
Java
Vlad_Radigin, 2018-05-01 13:52:29

Why if you run a .java file via cmd, then the Cyrillic alphabet will turn into incomprehensible characters?

Why is this happening?
And how to fix this?
5ae846bc224b5721274353.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2018-05-01
@GavriKos

Agree command line encodings and where the exhaust is coming from.

S
Saboteur, 2018-05-01
@saboteur_kiev

because the console encoding is apparently different from what you mean in the code.
Try chcp 65001 first

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question