The encoding does not switch to cp1251 in stm32cubeide
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-01-16 9:17 PM
I have a problem with the output in cp1251 encoding.
settings that I made:
- Window--->Preferences--->General--->Workspace ---> entered CP1251 ---> next apple and close
- project ---> properties ---> Resourse ---> entered cp1251 ---> next apple and close
- 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
Solved! Go to Solution.
Labels:
- Labels:
-
STM32CubeIDE
-
STM32H7 Series
This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION
Accepted Solutions
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-01-17 10:49 AM
Now switch HEX mode off, select encoding 1251 and you will see the text. It is in CP1251.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-01-17 10:49 AM
Now switch HEX mode off, select encoding 1251 and you will see the text. It is in CP1251.
