Skip to content

Windows Terminal显示乱码问题 #1

@Perdixky

Description

@Perdixky

Windows Terminal中国默认编码格式为gb2312,需要使用以下指令来改为UTF-8

[Console]::InputEncoding = [Console]::OutputEncoding = $OutputEncoding = [System.Text.UTF8Encoding]::new()  # BOM-less UTF-8

只需要打开Stack Build等终端的时候运行这个代码即可,希望可以加入这个功能!

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