CubeMX 6.14 encoding of generated code changed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 6:23 AM
Hi,
just made an update of CubeMX from 6.11.1 to 6.14.
The problem I have is that our comments within user blocks were ISO-8859-1 encoded and this never was a problem until now and with 6.14, when we generate code, all Umlauts are replaced with the UTF-8 sequence EF BF BD.
Is there an option to tell CubeMX to use ISO-8859-1 for reading and encoding?
Solved! Go to Solution.
- Labels:
-
STM32CubeMX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 6:57 AM
Nope, as I said, the files are allready ISO-8859-1 encoded before the generation and this wasn't a problem at least until version 6.11.1.
Meanwhile I found a workaround and added the line
-Dfile.encoding=ISO-8859-1
into STM32CubeMX.l4j.ini
Now CubeMX reads and generates the files in the correct encoding again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 6:34 AM - edited ‎2025-04-02 6:34 AM
Hi,
afaik this has not much to do with the CubeMx version, but with the IDE version and especially its settings:
...so try:
- but there might be other definitions in the settings and preferences...just look. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 6:57 AM
Nope, as I said, the files are allready ISO-8859-1 encoded before the generation and this wasn't a problem at least until version 6.11.1.
Meanwhile I found a workaround and added the line
-Dfile.encoding=ISO-8859-1
into STM32CubeMX.l4j.ini
Now CubeMX reads and generates the files in the correct encoding again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 1:42 PM
It's the time to move to utf-8, for all tools.
