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 美国英语 |
阅读 4809 · 发布于 2019-08-14
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
nslookup 查询时指定 DNS 服务器阅读 1720
-
Spring Boot 使用 springfox-boot-starter 接入 Swagger2阅读 386
-
IDEA 版 Postman HTTP Client 测试 API 接口阅读 662
-
GoJS 更改 Overview 的拖动框颜色阅读 1069
-
Arthas 使用 retransform 热更新 Srping Boot 代码阅读 2754
-
微信小程序基于 Parser 添加长按复制、代码高亮等功能阅读 3867
-
使用 jsDelivr 解决 GitHub 资源下载慢的问题阅读 409
-
Java 并发编程之 ConcurrentHashMap 1.8 源码分析阅读 883
-
Java 并发编程之 AQS ReentrantLock 可中断锁源码解析阅读 523
-
Nginx 配置之屏蔽 IP 访问阅读 1848