How to convert a batch file stored in utf-8 to something that works via another batch file and run it

前端 未结 3 390
臣服心动
臣服心动 2020-12-10 07:58

I have a program I use to create a batch file. My problem is that the program\'s output is UTF-8 so as soon as any diacritical marks like é,à,ö,Ä are in my batch file it fai

3条回答
  •  自闭症患者
    2020-12-10 08:22

    In Unix I would use the "iconv" tool for converting between encodings:

    iconv --from-code UTF-8 --to-code iso-8859-1 -c inputfile > outputfile
    

    It seems a build for Windows is avialable at http://gnuwin32.sourceforge.net/packages/libiconv.htm

提交回复
热议问题