haijie1223 Posted 2 hours ago Posted 2 hours ago When the path contains Chinese, the output error message contains garbled characters. How can I solve this? In the attachment, run test.au3 and you can see the garbled characters in 1.txt. test.7z
argumentum Posted 2 hours ago Posted 2 hours ago (edited) the files does have a duplicate function name, but that is not the problem for you. Your problem is how it looks in the console no displaying the characters in your SciTE editor that is not even from this site, right ? Ok, so the redirect also gives the ?? instead of the characters. No clue 🤷♂️ Edited 2 hours ago by argumentum 🤷♂️ Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
haijie1223 Posted 2 hours ago Author Posted 2 hours ago 21 minutes ago, argumentum said: the files does have a duplicate function name, but that is not the problem for you. Your problem is how it looks in the console no displaying the characters in your SciTE editor that is not even from this site, right ? Ok, so the redirect also gives the ?? instead of the characters. No clue 🤷♂️ yes,it is.
ioa747 Posted 1 hour ago Posted 1 hour ago #include <AutoItConstants.au3> #include <FileConstants.au3> ; Define files Local $scriptFile = "测试.au3" Local $logFile = "1.txt" Local $pid = Run('"' & @AutoItExe & '" /ErrorStdOut "' & $scriptFile & '"', @ScriptDir, @SW_HIDE, $STDOUT_CHILD + $STDERR_CHILD) ProcessWaitClose($pid) Local $output = StdoutRead($pid) & StderrRead($pid) FileWrite($logFile, $output) ShellExecute($logFile) I know that I know nothing
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now