Can I use echo to generate an UTF-8 text file? For example if I want to generate a file that contains the character \"ę\"
echo \"abcd ę\" > out.txt
Appears as well as changing the code page you need to write at least one unicode character in your first echo out to the file for the file to be saved as unicode. So your batch file itself needs to be stored in a unicode format like UTF-8.