With compiler version >= 3.5.18.0, UTF-8 encoded string literals are possible as a single-byte string with base STRING.
Syntax:
UTF8#' <string literal> '
Example 183. Constant declaration
VAR CONSTANT
constA : STRING := UTF8#'aäoöuü';
constB : STRING := UTF8#'Hello Allgäu $21'; // Hello Allgäu!
END_VAR
|
Tip |
|---|---|
|
To ensure correct monitoring, the |