cancel
Showing results for 
Search instead for 
Did you mean: 

The encoding does not switch to cp1251 in stm32cubeide

Alex Golubev
Associate II

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 

1 ACCEPTED SOLUTION

Accepted Solutions
Pavel A.
Evangelist III

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

0693W000007BZA1QAO.jpg

View solution in original post

1 REPLY 1
Pavel A.
Evangelist III

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

0693W000007BZA1QAO.jpg