CygnusX1 Posted July 21, 2016 Share Posted July 21, 2016 Hello, I have searched and found several topics on printing to the AutoIt console using different languages but I'm still stumped. I saw I could add lines to the users.properties file code.page=65001 output.code.page=65001 But my text isn't showing up in language. My script is opening up a program that has been translated to Russian on a Russian OS (Windows). I grab the text of the menus and want to print the words to the console. What am I missing? Thank you. Cygnus Link to comment Share on other sites More sharing options...
Developers Jos Posted July 21, 2016 Developers Share Posted July 21, 2016 try using this udf to display the output: ; Show UTF characters in a proper way with ConsoleWrite ; Author: jchd Func __ConsoleWrite($s) ConsoleWrite(BinaryToString(StringToBinary($s, 4), 1)) EndFunc ;==>__ConsoleWrite Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
CygnusX1 Posted July 21, 2016 Author Share Posted July 21, 2016 (edited) Hi Jos, Thanks for the response. I'm still getting the weird black diamond question marks. I have File > Encoding > UTF8 with BOM set. Is this necessary? I'm using your code... ConsoleWrite(BinaryToString(StringToBinary($sData, 4), 1)) Any other thoughts? Brad Edited July 21, 2016 by CygnusX1 Cygnus Link to comment Share on other sites More sharing options...
Developers Jos Posted July 21, 2016 Developers Share Posted July 21, 2016 Show me a simple oneliner statement with your characters so I can have a play. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
CygnusX1 Posted July 21, 2016 Author Share Posted July 21, 2016 Jos, Thanks for your solution! It worked great. I figured out my problem, it was me not you Thank you so much Brad Cygnus Link to comment Share on other sites More sharing options...
SimplyDemon Posted May 12, 2020 Share Posted May 12, 2020 What is solution? I have same problem! Link to comment Share on other sites More sharing options...
Developers Jos Posted May 12, 2020 Developers Share Posted May 12, 2020 So did you try the provided solution? ... or else simply post you code having the issue when you want some help without us having to guess. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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