haijie1223 Posted 9 hours ago Posted 9 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 8 hours ago Posted 8 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 8 hours ago by argumentum 🤷♂️ Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
haijie1223 Posted 8 hours ago Author Posted 8 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 7 hours ago Posted 7 hours 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
haijie1223 Posted 4 hours ago Author Posted 4 hours ago @ioa747 测试.au3 set any errors,then logs contains garbled characters。 argumentum 1
argumentum Posted 27 minutes ago Posted 27 minutes ago (edited) ..then is not a forum solution that you need but a bug report. And is better that you doit yourself because I'll never use that language and you can do a follow up on it Edited 26 minutes ago by argumentum added link Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
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