Skip to main content
Alex Golubev
Associate III
January 17, 2021
Solved

The encoding does not switch to cp1251 in stm32cubeide

  • January 17, 2021
  • 1 reply
  • 1328 views

I have a problem with the output in cp1251 encoding.

settings that I made:

  1. Window--->Preferences--->General--->Workspace ---> entered CP1251 ---> next apple and close
  2. project ---> properties ---> Resourse ---> entered cp1251 ---> next apple and close 
  3. Add code :
char str[32]; 
 sprintf(str,"Привет");

4. rebuild project

5.I didn't get any errors

I opened it in notepad in the hex editor and saw the following words for the word "привет":

d0 9f d1 80 d0 b8 d0 b2 d0 b5 d1 82

0693W000007BYAUQA4.png 

This topic has been closed for replies.
Best answer by Pavel A.

Now switch HEX mode off, select encoding 1251 and you will see the text. It is in CP1251.

0693W000007BZA1QAO.jpg

1 reply

Pavel A.
Pavel A.Best answer
January 17, 2021

Now switch HEX mode off, select encoding 1251 and you will see the text. It is in CP1251.

0693W000007BZA1QAO.jpg