PowerShell(PHPStorm terminal with PowerShell)运行git log中文乱码

解决方案:

1)以管理员身份运行PowerShell

2)新建一个针对PowerShell的Pofile文件

New-Item -Path $Profile -ItemType file -Force

  

3)用记事本打开这个文件

notepad $Profile

  

4)然后输入并保存退出

$env:LC_ALL='C.UTF-8'

  

5)重启Powershell或PHPStorm Terminal查看效果

PowerShell永久更改编码后的效果图

 

 

参考:

https://stackoverflow.com/questions/4670891/how-to-install-and-configure-powershell

posted @ 2018-02-11 16:25  ranwuer  阅读(417)  评论(0编辑  收藏  举报