In the text file 1.txt I look for all the lines where there is the word " Documents " and save it to the file rezultat.txt.

I use the command:

FINDSTR /L "Документы" 1.txt > rezultat.txt 

The problem is that: words written in Cyrillic (in Russian) are not searched. And in English are searched. How to solve the problem of searching in Russian and solved, this problem as a whole?

Addition, the full code (I look for all the lines where there is the word Documents and save the result to the file rezultat.txt ):

Bat file itself (code) (Do not search for lines by the word - Documents):

 @echo off setlocal enableextensions enabledelayedexpansion set /P base="Enter base filename with extension! (eg. MyBase.txt) -> " FINDSTR /L "Документы" %base% > rezultat.txt echo "Rabota zavershena" pause 
  • one
    Of course. If the word is searched in the encoding in which it is written in the file - Anton Shchyrov
  • @Anton Shchyrov, and how best to find an approach in this situation. I understand you need to translate the word to another encoding or? - Tatiana
  • one
    Exactly. Programs do not search for letters. They are looking for bytes - Anton Shchyrov
  • one
    Not. You need to decode only the line you are looking for - Anton Shchyrov
  • one
    I have no idea what, where and how you are looking for - Anton Shchyrov

0