-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
No way to setup the shell utf-8 encoding in windows. #32955
Comments
For build tasks I use something like this {
"version": "0.1.0",
"command": "cmd",
"isShellCommand": true,
"args": [],
"tasks": [
{
"taskName": "build",
"args": [
"/C",
"chcp 65001",
"&&",
"dotnet",
"build",
"${workspaceRoot}/NaturalBreaksClassification.csproj"
],
"isBuildCommand": true,
"problemMatcher": "$msCompile"
}
]
} |
When I use git-bash from this terminal, as far as I know, there is also no way to set up as utf-8. ref(ja-JP): https://teratail.com/questions/90822 |
With the new task runner that executes task in the terminal using a shell this got simplified a lot. Tips and tricks on how to control the encoding can be found here: https://github.com/Microsoft/vscode-docs/blob/vnext/docs/editor/tasks.md#changing-the-encoding-for-a-task-output As explained there is not generic way how this can reasonably be solved for different OSes and shells. |
I need to change shell encoding to utf-8, because default encoding not showing up cyrillic symbols. Only way to do this that I found is adding shell args as described in #19837. But when I use tasks with this workaround error happens. "Parameter format not correct - /d" for cmd and "Parameter format not correct - -Command" for powershell. There is no way to change shell encoding and use tasks both.
Steps to Reproduce:
"terminal.integrated.shellArgs.windows": ["-NoExit", "/c", "chcp 65001"]
in configurationReproduces without extensions: Yes
The text was updated successfully, but these errors were encountered: