Unicode support in IAR Embedded Workbench

IAR Embedded Workbench for Arm supports the latest C11 and C++14 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:

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

You also need to enable it in the Linker settings:

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:

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:

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.

This article is written by Rafael Taubinger, our Global FAE Manager.

© IAR Systems 1995-2017 - All rights reserved.