当前位置:网站首页>Chinese garbled solution in UTF-8 environment in Powershell
Chinese garbled solution in UTF-8 environment in Powershell
2022-07-31 05:58:00 【tcliuwenwen】
Blog background
Detailed operation
The above picture shows that for powershell, he may not recognize the old chcp in some cases.
Although chcp becomes 936, it still adheres to the UTF-8 environment configured at the previous initialization.
The solution is:
$OutputEncoding = [console]::InputEncoding =[console]::OutputEncoding = [System.Text.Encoding]::GetEncoding(936);
边栏推荐
猜你喜欢
随机推荐
mysql常用命令
[Cloud native] Ribbon is no longer used at the bottom layer of OpenFeign starting from the 2020.0.X version
360 加固 file path not exists.
MySQL高级学习笔记
Sqlite A列数据复制到B列
cocos2d-x-3.2创建项目方法
Xiaobai learns reptiles - introduction to reptiles
cocos2d-x-3.2 Physics
2021 Mianjing - Embrace Change
How MySQL - depots table?A look at will understand
MySQL分页查询的5种方法
mysql启动报错The server quit without updating PID file几种解决办法
SQLite 查询表中每天插入的数量
[Cloud native] Open source data analysis SPL easily copes with T+0
GUCCI, LV and other luxury giant universe how to layout yuan, other brands should keep up with?
Powershell中UTF-8环境中文乱码解决办法
一个简单的bash转powershell案例
js中的函数
Build vulhub vulnerability shooting range on kali
MySQL面试题大全(陆续更新)