IecString PLC / C++

The PLCnext Engineer documentation states that a string is encoded using ANSI:

String of ANSI characters followed by a trailing zero character. Each character is represented by one byte.

However, in C++, an IecStringEx is defined as a FixedUtf8String (eclrinterfaces.h):

    /// <summary>
    /// C++ equivalent of the [pcoslib]System.Iec61131Lib.IecStringEx struct.
    /// </summary>
    typedef FixedUtf8String IecStringEx;

Does it cause any problems?

Hello beecksche,

this should generally not be a problem.

I think A conversion layer already exists in PLCnext Runtime / ECLR, and both sides use the correct encoding for their own side.

However, it must be noted that UTF-8 has a much larger range and not all characters can be displayed in ANSI.
It is therefore important in the UTF-8 context to only use characters that exist in ANSI.