Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zlua unable to deal with chinese char correctly after setting utf8 encoding in powershell. #203

Open
owenstake opened this issue Mar 9, 2024 · 1 comment

Comments

@owenstake
Copy link

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
@owenstake owenstake changed the title Zlua unable to deal with chinese char correctly after to set utf8 encoding in powershell. Zlua unable to deal with chinese char correctly after setting utf8 encoding in powershell. Mar 10, 2024
@owenstake
Copy link
Author

~/.zlua is encoded as cp936[dos]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant