N
N
NoMoneyException2016-12-13 17:32:21
Java
NoMoneyException, 2016-12-13 17:32:21

Why don't the encodings in the console work from the word at all?

Guys, please help, as soon as I did not try to display or change something, the encoding still does not work.

if (OUT == null)
            try {
                OUT = new PrintStream(System.out, false, "Cp866");
            } catch (UnsupportedEncodingException e) {
                ErrorHandler.handle(e);
            }
        OUT.print(message);

on the console the result is 0, it doesn't matter what encoding I specify there - the Cyrillic alphabet is displayed incorrectly. I tried other methods, but the console refuses to recognize the chcp command at all (win 10). what to do? Maybe it's because I have the English language of the system?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question