Zlua unable to deal with chinese char correctly after setting utf8 encoding in powershell.
owenstake opened this issue · 2 comments
owenstake commented
After set the following in powershell, zlua unable to deal with chinese char correctly.
[Console]::OutputEncoding = [Console]::InputEncoding = [System.Text.Encoding]::utf8The 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.PushLocationCommandowenstake commented
~/.zlua is encoded as cp936[dos]