为什么在执行批处理文件时在文本编辑器中不显示丹麦语字符? [英] Why are Danish characters not displayed as in text editor on executing batch file?

查看:61
本文介绍了为什么在执行批处理文件时在文本编辑器中不显示丹麦语字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个简单的批处理文件,但是执行批处理文件时Windows命令处理器cmd.exe不能正确显示丹麦语字符.它显示诸如├ª├©├Ñ而不是ÆØÅ之类的怪异字符.如果我直接在cmd窗口中键入echo æøå,则会显示æøå.

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 characters like ├ª├©├Ñ instead ÆØÅ. If I type echo æøå directly in cmd window, it shows æøå.

我的计算机出问题了吗?

Is there something wrong with my computer?

推荐答案

使用 chcp 进行管理您的代码页.

Use chcp to manage your code page.

Mofi 所说,指定以下内容将有助于解决您的问题:

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

chcp 1252

在打印echo æøå之前,请使用以下代码行.

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

这篇关于为什么在执行批处理文件时在文本编辑器中不显示丹麦语字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆