Celtic88 Posted September 6, 2015 Share Posted September 6, 2015 I am trying to print a text unicode, but not working!! ConsoleWrite("أحاول طباعة يونيكود النص ولكن لا يعمل")Is there a solution Link to comment Share on other sites More sharing options...
Gianni Posted September 6, 2015 Share Posted September 6, 2015 (edited) this is not a solution but a possible "workaround"$string = "أحاول طباعة يونيكود النص ولكن لا يعمل" ControlSend("", "", "[CLASS:Scintilla; INSTANCE:2]", $string)p.s.وأنا أحاول أن طباعة نص Unicode ويعمل بشكل جيد. Edited September 6, 2015 by Chimp Celtic88 1 Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
Celtic88 Posted September 6, 2015 Author Share Posted September 6, 2015 (edited) Thank you for your reply, Mr chimp I found a solution, just convertire lines that contains unicode character to binary $Text_Unicode = "سلام hallo :) © ® ™" $Convert_Text_Unicode_Tobinary = Stringtobinary($Text_Unicode & @CRLF,4) ConsoleWrite($Convert_Text_Unicode_Tobinary) $RedeConsole=StdoutRead($siPid, False, True) msgbox(0,"",BinaryToString($RedeConsole, 4)) Edited September 6, 2015 by Celtic88 Link to comment Share on other sites More sharing options...
Gianni Posted September 6, 2015 Share Posted September 6, 2015 (edited) nice, that's a better way Edited September 6, 2015 by Chimp Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
Stpham Posted September 21, 2015 Share Posted September 21, 2015 (edited) Thank you for your reply, Mr chimp I found a solution, just convertire lines that contains unicode character to binary $Text_Unicode = "سلام hallo :) © ® ™" $Convert_Text_Unicode_Tobinary = Stringtobinary($Text_Unicode & @CRLF,4) ConsoleWrite($Convert_Text_Unicode_Tobinary) $RedeConsole=StdoutRead($siPid, False, True) msgbox(0,"",BinaryToString($RedeConsole, 4)) It's work on windows 8 but didn't work on Win Server 2012, I don't know why! So current now, only one solution of Celtic88 work on Win Server 2012:this is not a solution but a possible "workaround"$string = "أحاول طباعة يونيكود النص ولكن لا يعمل" ControlSend("", "", "[CLASS:Scintilla; INSTANCE:2]", $string)p.s.وأنا أحاول أن طباعة نص Unicode ويعمل بشكل جيد. Anyone have other solution for using Unicode Character with ConsoleWrite() on Win Server 2012?. Why SciTE4AutoIT3 doesn't support Unicode Character on Output Console? @@ Edited September 21, 2015 by stpham Link to comment Share on other sites More sharing options...
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