Why are Danish characters not displayed as in text editor on executing batch file?

前端 未结 2 668
粉色の甜心
粉色の甜心 2020-11-28 16:53

I make a simple batch file, but Windows command processor cmd.exe does not display Danish characters correct when I execute the batch file. It shows weird chara

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 17:11

    Use chcp to manage your code page.

    Like Mofi said, specifying the following would help your case:

    chcp 1252
    

    Use this line of code before you print echo æøå.

提交回复
热议问题