xpfConvertString
FUNCTION xpfConvertString (inputString : STRING; inputStringEncoding : INTEGER; convertedStringEncoding : INTEGER; VAR anyChanges : BOOLEAN) convertedString : STRING;
This function can be used to convert a string from one string encoding style to another. Currently only conversion from ISO-LATIN-1 and UTF-8, and vice versa, is implemented.
Arguments
Type | Name | Comment |
STRING | inputString | input String |
INTEGER | inputStringEncoding | valid types: XPXCHAR_ENCODING_UTF-8 XPXCHAR_ENCODING_UTF-16 XPXCHAR_ENCODING_ISO-10646-UCS-2 XPXCHAR_ENCODING_ISO-10646-UCS-4 XPXCHAR_ENCODING_ISO-LATIN-1 XPXCHAR_ENCODING_ISO-LATIN-2 XPXCHAR_ENCODING_ISO-8859-3 XPXCHAR_ENCODING_ISO-8859-4 XPXCHAR_ENCODING_ISO-8859-5 XPXCHAR_ENCODING_ISO-8859-6 XPXCHAR_ENCODING_ISO-8859-7 XPXCHAR_ENCODING_ISO-8859-8 XPXCHAR_ENCODING_ISO-8859-9 XPXCHAR_ENCODING_ISO-2022-JP XPXCHAR_ENCODING_SHIFT_JIS XPXCHAR_ENCODING_EUC-JP |
INTEGER | convertedStringEncoding | valid types: XPXCHAR_ENCODING_UTF-8 XPXCHAR_ENCODING_UTF-16 XPXCHAR_ENCODING_ISO-10646-UCS-2 XPXCHAR_ENCODING_ISO-10646-UCS-4 XPXCHAR_ENCODING_ISO-LATIN-1 XPXCHAR_ENCODING_ISO-LATIN-2 XPXCHAR_ENCODING_ISO-8859-3 XPXCHAR_ENCODING_ISO-8859-4 XPXCHAR_ENCODING_ISO-8859-5 XPXCHAR_ENCODING_ISO-8859-6 XPXCHAR_ENCODING_ISO-8859-7 XPXCHAR_ENCODING_ISO-8859-8 XPXCHAR_ENCODING_ISO-8859-9 XPXCHAR_ENCODING_ISO-2022-JP XPXCHAR_ENCODING_SHIFT_JIS XPXCHAR_ENCODING_EUC-JP |
BOOLEAN | anyChanges | optional, i.e., can be specified as ? (INDETERMINATE). |
Return Value
Type | Name | Comment |
STRING | convertedString | converted string |
Options
Example
<Missing Example>
See also
Filter by label
There are no items with the selected labels at this time.