Skip to content
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

fix: compatible for windows path with Chinese characters #83

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

zh-lx
Copy link

@zh-lx zh-lx commented Nov 2, 2024

close #82

On windows, when the path has Chinese characters, the output of processes from powershell will has messy code.

So before exec powershell -NoProfile -Command "Get-CimInstance -Query \\"select executablepath from win32_process where executablepath is not null\\" | % { $_.ExecutablePath }". We need exec chcp 65001 to make the output compatible for Chinese characters firstly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

windows: 中文路径打开失败
1 participant