randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.38k stars 84 forks source link

Help: How to change the active console code page in cmd.exe #282

Open krisfans opened 3 years ago

krisfans commented 3 years ago

I use this plugin on windows but the default code page(encoding) of cmd.exe is not utf-8 , I want to open terminal via Terminus: Open Default Shell in Tab (View) command with utf8 enconding , what should I do? I tried this ,but it doesn't work. Thanks

 {
        "caption": "Open Default Shell in Tab (View)",
        "command": "terminus_open",
        "args": {
            "cmd": [
                "chcp",
                "65001",
            ],
            "cwd": "${file_path:${folder}}",
            "title":"Cmd"
        }
}