-
Notifications
You must be signed in to change notification settings - Fork 57
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
中文字符乱码的问题 #100
Comments
欢迎PR,需要注意兼容其他系统 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如果备份脚本里有涉及中文字符,会有乱码的情况,导致无法执行成功
![image](https://private-user-images.githubusercontent.com/40285666/292665013-9fbdb5d6-3b0b-453a-bdbd-e7fd982c6d90.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAwMTY2MjUsIm5iZiI6MTcyMDAxNjMyNSwicGF0aCI6Ii80MDI4NTY2Ni8yOTI2NjUwMTMtOWZiZGI1ZDYtM2IwYi00NTNhLWJkYmQtZTdmZDk4MmM2ZDkwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAzVDE0MTg0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUyNWQzOTdkZWRmY2ZmZmUyYzdlMWNiYmI3MDJiNzE2ZTg0MWJmMjkwNmU2MGJmYzhkNTA0YjQ1YTZlMDE3M2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.p5TJNP4Kwho-85qiF2K9tAm3gUq5Mh1FlVOvJ7GNlEY)
我在Client里的backup.go文件中,shellString写入前进行了GBK转码,就能正常执行
另外还有个问题,shell.CombinedOutput()这段代码,获取的内容,中文字符会变成x开头的字符
The text was updated successfully, but these errors were encountered: