CygnusX1

Printing to AutoIt Console in Cyrillic

5 posts in this topic

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

Share this post


Link to post
Share on other sites



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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (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

question_marks.png

Edited by CygnusX1

Cygnus

Share this post


Link to post
Share on other sites

Jos, 

Thanks for your solution! It worked great. 

I figured out my problem, it was me not you :)

Thank you so much

Brad

figured_it_out.png


Cygnus

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now