开发者

International characters in a batch file

开发者 https://www.devze.com 2023-01-29 17:40 出处:网络
Hey, I\'m ha开发者_Go百科ving some problems writing a batch file where I need to specify some file paths containing international characters (the norwegian letter \'ø\' to be exact).

Hey, I'm ha开发者_Go百科ving some problems writing a batch file where I need to specify some file paths containing international characters (the norwegian letter 'ø' to be exact).

For example, the filename axporteføljedb.vbp (which looks normal in notepad) turns into axportef°ljedb.vbp on the command line, which the system then goes on to complain about not finding.

Any suggestions?


It will work if you save your batch file as ANSI with a Norwegian character set (with Notepad++ for example). Then, in the cmd, when you want to run your batch file, first change the code page to something that supports Norwegian: chcp 1252 (in the console).

0

精彩评论

暂无评论...
验证码 换一张
取 消