There is such a batch file:
@<"info.txt">"out.txt" (for /f "delims=" %%i in ('find/n /v ""') do @chcp 65001>nul& set x=%%i& cmd/v/c echo[!x:*]^^=!) pause It correctly converts file from CP866 to UNICODE. But for some reason he breaks off the input immediately after his work (pause does not work). And this problem is observed only in XP versions of windows, in the seven there is no such problem. What is the reason I do not understand.