Windows 使用 chcp 修改 PowerShell、cmd 编码
chcp cmd PowerShell 大约 560 字说明
PowerShell
或cmd
默认编码跟随系统,很有可能不是UTF-8
编码。
CHCP
Changes the active console code page. If used without parameters, chcp displays the number of the active console code page.
使用
显示当前编码
chcp
输出:(936
代表简体中文)
Active code page: 936
修改为UTF-8
编码
chcp 65001
输出:(在当前PowerShell
或cmd
中有效)
Active code page: 65001
对应编码
编码 | 对应语言 |
---|---|
65001 | UTF-8 |
1258 | 越南语 |
1257 | 波罗的语 |
1256 | 阿拉伯语 |
1255 | 希伯来语 |
1254 | 土耳其语 |
1253 | 希腊语 |
1252 | 拉丁 1 字符 (ANSI) |
1251 | 西里尔语 |
1250 | 中欧语言 |
950 | 繁体中文 |
949 | 朝鲜语 |
936 | 简体中文 |
932 | 日语 |
874 | 泰国语 |
850 | 多语种 (MS-DOS Latin1) |
437 | MS-DOS 美国英语 |
阅读 5743 · 发布于 2019-08-14
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓
昵称:
随便看看
换一批
-
Kubernetes 可视化工具 Lens 及 OpenLens阅读 1960
-
Windows 子系统 Ubuntu 启动 Docker 报错解决方法阅读 5720
-
Android ScrollView 不在最顶部问题阅读 3171
-
JavaScript/PHP 判断是否为微信内置浏览器阅读 3252
-
minikube 安装 Kubernetes ingress 插件报错 timed out waiting for the condition阅读 3435
-
使用 trivy 扫描 Docker 镜像、K8S 集群的安全漏洞阅读 1823
-
macOS 无法打开 JMC 和 Eclipse MAT 应用阅读 740
-
Linux CentOS 安装 MySQL5.7阅读 4640
-
Maven 设置阿里云镜像阅读 975
-
走进 Rust:结构体阅读 2634