W
W
WildOne28022020-05-06 15:42:52
Character encoding
WildOne2802, 2020-05-06 15:42:52

How to change encoding in Windows 10 command line?

The bottom line is this, the teacher threw off the task with the attached .cmd file, which was supposed to create a Derby database for a java project, but instead of intelligible text there (on the command line) some kind of gibberish. Through simple operations, we determined that the encoding in the file is 1251 (Windows), and in our command lines the encoding is 866 (OEM). How to solve a similar problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WildOne2802, 2020-05-06
@WildOne2802

We solved the problem ourselves, in a peculiar way
Opened PowerShell
entered chcp 1251
and worked through it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question