-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
How to set Integrated Terminal default encoding to UTF-8? #19837
Comments
"tsc" �� ����� ����७��� ��� ���譥� here is what the compiler is writting,
|
You can use "chcp" command to set the encoding of Terminal. |
If Integrated Terminal can execute some script automatically,it will help. |
I don't know much about setting shell encoding on Windows so any help would be appreciated. If this can be set via an environment variable then that is doable. By default VS Code sets the |
"chch 65001" not helped in output window, I,m just set locale to "en", as explained here - https://code.visualstudio.com/docs/customization/locales. |
Thank yuriy-06,but it not works. |
I'm run in cmd.exe "REG ADD HKCU\Console /v CodePage /t REG_DWORD /d 65001 /f" |
|
@daviwil should this arg be rolled into the vscode-powershell extension? Is there any reason this isn't the default? |
@yuryleb I set PYTHONIOENCODING to UTF-8 and your solution didn't work for me. This one seems to have worked:
|
Ping @daviwil |
Apologies, I've been buried in e-mail for the past week! This seems like a general issue with the terminal right? Seems that some here are having to configure cmd.exe with the same chcp call. I'll make sure the PS extension's Integrated Console also sets the mode correctly. |
@daviwil setting it as the default could cause issues as then users have to change the |
@Tyriar But when use tasks with this workaround error happens. "Parameter format not correct - /d" for cmd and "Parameter format not correct - -Command" for powershell. I think you need to reopen this issue. |
@artem-leonov if this is specific to tasks please create a new issue |
In Windows, |
Steps to Reproduce:
As title,I want to set the default encoding of Integrated Terminal to UTF-8.But I don't know how to do this.
Please teach me how to do this,thanks.
The text was updated successfully, but these errors were encountered: