I can't change to utf-8 from chcp65001 of powerhell in windows7.

Asked 2 years ago, Updated 2 years ago, 92 views

chcp65001 will terminate abnormally if you try to change the code version.

Please tell me how to change the code version to utf-8 on 65001.Thank you for your cooperation.

windows powershell

2022-09-30 18:16

1 Answers

For the time being, I succeeded in running chcp65001 on Windows 10.
If it ends abnormally, please provide an error message, event log, etc.Third parties have no idea what's going on.

Also, the situation is different from the problem with windows7's mingw shell garbled characters.In the first place, chcp is a tool to change the code page of the console (that black border used in command prompts and PowerShells, equivalent to a terminal emulator in UNIX).The goal is to match the code page of the program that runs inside the console with the code page of the console.However, PoerShell defines the internal character code as Unicode (UTF-16) and makes little sense to change the code page.
Therefore, there is a possibility that this garbled character may be caused by improper loading processing.You should also provide instructions on how to reproduce what is garbled.


2022-09-30 18:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.