version 11
Convert to text (BLOB; charSet) Text
Parameter | Type | Description | |
BLOB | BLOB | BLOB containing text expressed in a | |
specific character set | |||
charSet | String | Longint | Name or Number of BLOB character set | |
Function result | Text | Contents 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
System Variables or Sets
If the command has been correctly executed, the OK variable is set to 1. Otherwise, it is set to 0.