Hi Franco,

Can you give some context to what you are trying to achieve? As Andre mentions, strings in DataFlex 20.x are now encoded as UTF-8 in memory by default. UCharArrayToString creates an array of bytes containing the string with its current encoding. Since characters in UTF-8 can span multiple bytes you'll see this back in that array. Note that what the debugger when displaying a UChar (array) only shows a character for the plain ASCII set and will show � for values above 127.

So the difference with DF19.x is expected, whether that is really an issue depends on what you are trying to do.

Regards,