F
F
FirstBlood2015-04-04 10:30:46
Java
FirstBlood, 2015-04-04 10:30:46

How to display Russian letters in the console?

When compiling in Java, Russian letters are displayed in the console. Previously, I just did everything through the IDE, now I've updated it to Java 1.8, and even in IntelliJ krakozyabry or questions are displayed. How to solve it?
Windows 7, IntelliJ IDEA 14.1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danila, 2015-04-04
@FirstBlood

1) You can try to execute first: chcp 1251
2) You can call a java application with the -Dfile.encoding=Cp866 parameter
3) You can call PowerShell (it seems like utf8 should be there)
4) You can call the cygwin console
5) You can refuse Win.
6) You can do this: System.setOut(new java.io.PrintStream(System.out, true, "Cp866"));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question