You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Current »
Description:
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.
Signature:
FUNCTION xpfConvertString (inputString : STRING;
inputStringEncoding : INTEGER;
convertedStringEncoding : INTEGER;
VAR anyChanges : BOOLEAN)
Arguments:
inputString |
inputed String |
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 |
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 |
anyChanges |
optional, i.e., can be specified as ? (INDETERMINATE). Hence this function can be used as argument to a functions and procedu |
EXAMPLE