I would like to know in what way in files with the .bat extension you can write in Russian without hieroglyphs?

    3 answers 3

    chcp 1251 echo тест pause 

    Only the console font needs to be changed to Lucida Console or Consolas

    • How to change the font, by hand? - avp

    Files are created in cp866 encoding, so charset=cp866 must be specified.

    • does not help, I write in notepad (notepad ++) - Nikita Aristarkhov
    • 2
      write then in far manager we admit. - Artem
    • one
      Or write a file conversion program from cp-1251 to cp-866. - avp

    In general, here is an excellent table of modern encodings for the Windows terminal.

    So, chcp с параметром 1251 will deliver the Russian encoding, that is, CP1251(Windows-1251) , and with the parameter 65001 - the international encoding UTF-8.