Here we refer to the following entry in the Codesys Online Help (OLH): ConvertUTF8toUTF16 (FUN)
Explanation
Not every sequence of bytes is a UTF-8 string.
So if the input is wrong, errors can occur when reading the string.
The option 'bStrictConversion' is to be interpreted in such a way that the function terminates as soon as an error occurs during reading.
- After that (if such an error occurred during reading) there is not much usable data left to continue working with.
Without the option, it will probably output an illegal character and simply continue with the next byte.
Our recommendation
So we would recommend here to always use "true" for this option.
See also....
- Our CODESYS Online Help
- Other customer questions submitted under Forge
- The Codesys Online Help (OLH) Website (pre SP18 link)