Convert to text

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11


Convert to text (BLOB; charSet) Text

ParameterTypeDescription
BLOBBLOBBLOB containing text expressed in a
specific character set
charSetString | LongintName or Number of BLOB character set
Function resultTextContents of BLOB expressed in 4D character set

Description

The Convert to text command converts the text contained in the blob parameter and returns it in text expressed in the character set of 4D. In version 11, 4D uses the Unicode character set by default.

In charSet, pass the character set of the text contained in blob, which will be used for the conversion. You can pass a string providing the standard name of the character set, or one of its aliases (for example, "ISO-8859-1" or "UTF-8"), or its identifier (longint). For more information, please refer to the description of the CONVERT FROM TEXT command.

Note: This command only works when 4D is executed in Unicode mode (the Unicode option must be checked in the 4D Preferences, see the "About Unicode" section). If it is used in compatibility mode (non-Unicode), it returns an empty string and the OK variable is set to 0.

See Also

CONVERT FROM TEXT.

System Variables or Sets

If the command has been correctly executed, the OK variable is set to 1. Otherwise, it is set to 0.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next