2020-12-24 03:43 AM
Hi.
I need to print characters in cp866 format. For printing, I use the printf function with an override of the write function. How can I make character printing using printf in cp866 encoding?
Thank you.
2020-12-24 04:51 AM
I am using stm32cubeid
2020-12-24 07:41 AM
This may work:
https://decoding.wordpress.com/2010/03/18/eclipse-how-to-change-the-console-output-encoding/
2020-12-24 08:31 PM
I didn't find cp866 in encoding settings.
What am I doing wrong?
2020-12-25 02:34 AM
For CP-866 use this encoding table: https://www.ascii-codes.com/cp866.html
Of course if you print that to a serial terminal or similar device it should be able to display it properly.
If the source text is in unicode (utf-8, utf-16...), convert it according to the table.
-- pa