Echo UTF-8 characters in windows batch

后端 未结 5 1800
暖寄归人
暖寄归人 2021-02-03 22:41

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

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-03 23:03

    Use chcp command to change active code page to 65001 for utf-8.

    chcp 65001
    

提交回复
热议问题