Skip to main content
KMiha.1
Associate
October 30, 2020
Question

How I can change glodal encoding?

  • October 30, 2020
  • 3 replies
  • 3262 views

Hello,

I have changed Preferences->General->Workspace->Text file encoding to Default (windows-1251).

After clicking 'Apply and Close' IDE striongly restores this property to UTF-8.

I have to use windows-1251 encoding in my project.

Nevertheless I see 'À�?Â...' instead of '�?БВ...' in SWV ITM Data Console, Watch window and anywhere else in IDEs windows during debuging.

Regards,

Mike

This topic has been closed for replies.

3 replies

TDK
Super User
October 30, 2020

STM32CubeIDE is based on Eclipse, so you can find a lot of answers by using Eclipse as a search keyword instead.

Some answers here:

https://stackoverflow.com/questions/21262519/change-encoding-in-eclipse

"If you feel a post has answered your question, please click ""Accept as Solution""."
KMiha.1
KMiha.1Author
Associate
October 30, 2020

I know how change encoding in Eclipse. I haven't problem with Eclipse.

The problem is that STM32CobeIDE doesn't save settings changes, rewriting it to UTF-8.

Lecordier.Guy
Associate III
January 13, 2021

Hi,

 I have the same problem.

I am moving from System Workbench to STM32CubeIDE 1.5.1

My code files are written using the CP1252 encoding.

 [Restore Defaults] restore temporally in CP1252.

 But [Apply and Close] doesn't save correctly

 Changing in ISO-8859-1 seems saving correctly.

 Regards,