Open owenstake opened 3 months ago
After set the following in powershell, zlua unable to deal with chinese char correctly.
[Console]::OutputEncoding = [Console]::InputEncoding = [System.Text.Encoding]::utf8
The Error messeage:
PS D:\你好> z 你好 Push-Location : 找不到路径“D:\��”,因为该路径不存在。 所在位置 行:57 字符: 11 + else { & "Push-Location" "$dest" } + ~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (D:\��:String) [Push-Location], ItemNotFoundException + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.PushLocationCommand
~/.zlua is encoded as cp936[dos]
~/.zlua
cp936[dos]
After set the following in powershell, zlua unable to deal with chinese char correctly.
The Error messeage: