Skip to content

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

Open
@owenstake

Description

@owenstake

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions