See Also: Utf8ToAnsi, String Functions
Converts a string encoded in the ANSI character format to UTF-8.
Use CharTranslate.pkg
(AnsiToUtf8( {stringValue} ))
Where:
{stringValue} is an ANSI encoded string
DataFlex strings are by default encoded as UTF-8. When working with external APIs or when importing data, it is sometimes necessary to convert strings from ANSI to UTF-8.
Procedure Test
String sAnsiString sValue
// move an ANSI encoded string to sAnsiString
Move (AnsiToUtf8(sAnsiString)) to sValue
End_Procedure