Unicode support in IAR Embedded Workbench

IAR Embedded Workbench for Arm supports the latest C18 and C++17 language standards. This also means that the whole toolchain, including IDE, compiler, editor and debugger, supports Unicode.

Virtually any Roman or non-Roman alphabet, and math symbols are now supported and can be used as symbols in the source code. Below you can find some examples of different languages and specific characters that is now supported in IAR Embedded Workbench:

Unicode Support 1

In order to use the Unicode, make sure to enable UTF-8 support in the compiler settings:

Unicode Support 2 Settings

You also need to enable it in the Linker settings:

Unicode Support Settings 3

Also supporting emojis!

Additionally, the Unicode support in IAR Embedded Workbench also means that you are allowed to use emoji icons since C11/C++14 "requires” compilers to accept emoji characters as identifiers. For example, an application can use the emoji icon of the temperature thermostat instead of the variable thermostat in the logic of the application:

Unicode Support Example 4

By extending it a bit further, the identifiers for your enum Fruit could have apples, strawberries, oranges and limes emoji icons. You can use emojis in any part of the application, for example when writing some application that needs a car, a scout and airplane as in the screenshot below:

Unicode Support Emoji 5

The supported list of emoji icons can be found at this Wikipedia page. Notice that Windows 10 supports the emoji icons by default. If you are using Windows 7 or previous versions you need to install additional fonts. For example, you can install the NoTo fonts from Google.

If you want to try the Unicode support, download this file with includes several example projects.

We do no longer support Internet Explorer. To get the best experience of iar.com, we recommend upgrading to a modern browser such as Chrome or Edge.