OemToUtf8
See Also: Utf8ToOEM, String Functions
Purpose
Converts a string encoded in the OEM character format to UTF-8.
Return Type
Syntax
Use CharTranslate.pkg
(OemToUtf8({stringValue}))
Where:
- {stringValue} is an OEM encoded string.
What It Does
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 OEM to UTF-8.
Examples
Procedure Test
String sOemString sValue
// Move an OEM encoded string to sOemString
Move (OemToUtf8(sOemString)) to sValue
End_Procedure