- Outline
- cmd encoding format modification
- background
- I tried to modify gitbash (mingw) before the Character Set
- The attempt to amend the cmd encoding format
- ready
- the
- win10.1903
- the
1. Review the current encoding
- Outline
- View the current default encoding cmd window
- Because I have not changed, so this should also be the default encoding cmd under win10
step
1. Open cmd
slightly
2. Check the current coding
command
# 大写也行, 搞不懂 > chcp 活动代码页: 936
- result
- 936
- What the hell
- Common encodings
- 936
- GBK
- UTF-8
- 65001
- 936
- 936
2. Modify the current window encoding format
- Outline
- Modify the encoding of the current cmd window
step
1. Open cmd
slightly
2. Modify the current encoding
command
> chcp 65001 # 窗口重启 # 重启后 第一行如下 Active code page: 65001
- result
- Restart window
- The first row has prompted coding changes
- Enter chcp query, the results are
Active code page: 65001
- Chinese actually do not have a
Try commands
> dir # 结果 # 1. 内容正常显示
- Scared, and fonts are changed
- Change fonts
- gbk when the default is Arial
- Switch to utf-8 when Lucida Console will be replaced
- Why font will change it?
- Because Arial not fully support all of the symbol utf-8
- Do not change, it may be garbled
- So, I changed the font, to avoid embarrassment
- Because Arial not fully support all of the symbol utf-8
- Change fonts
- Question: Modify only control a window
- problem
- I opened the individual cmd window, then change back to the coding gbk the
- There is no way
- problem
3. Modify all windows
- Outline
- Try to modify the coding of all windows
step
1. Registry Editor
slightly
2. Locate the entry corresponding cmd
path
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
3. Add Configuration
- Right-click the Command Processor
- Pop-up menu
- select
新建 > 字符串值
- New Item
- name
- autorun
content
chcp 65001
- name
- verification
- Reopen cmd
- Open success
- The first prompt 65001
- Reopen cmd
ps
- ref
- How windows cmd command to restore the default code page 936
- It introduces the meaning of commonly used coding
- How to modify the cmd console default encoding is utf-8
- This is the win10
- win7 version does not apply to me, I would not be able to verify, so it does not stick out
- How windows cmd command to restore the default code page 936
- Follow-up
- Honestly, I do not know what I order to modify this thing
- Do not know, after making changes, what impact
- In fact, I would like to know the principles of coded display
- And the reasons for some of the problems
- Incidentally, there are solutions ...
- Initially hoped to understand is that network transmission, unicode related content
- Now how I feel farther and farther ...
- Honestly, I do not know what I order to modify this thing