4D v13.4USE CHARACTER SET |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
USE CHARACTER SET
USE CHARACTER SET
USE CHARACTER SET modifies the character set used by 4D during data transfer between the database and a document or a serial port for the current process. Transfer operations include the import and export of text (ASCII), DIF, and SYLK files. An ASCII map also works on data transferred with SEND PACKET, RECEIVE PACKET (for text type packets) and RECEIVE BUFFER. It has no effect on transfers of data done with SEND RECORD, SEND VARIABLE, RECEIVE RECORD, SEND PACKET, RECEIVE PACKET (for BLOB type packets) und RECEIVE VARIABLE. The USE CHARACTER SET command is used differently according to whether the database is operating in Unicode mode or in ASCII compatibility mode. It loads into memory either a character set or an ASCII map. Note: For more information about these modes, please refer to the ASCII Codes section. Unicode Mode ASCII compatibility mode If mapInOut is 0, the map is set for exporting. If mapInOut is 1, the map is set for importing. If you do not pass the mapInOut parameter, the export map is used by default. When the * parameter is passed, the default character set is restored (import or export map depending on the value of mapInOut). The following example (Unicode mode) uses the UTF-16 character set to export a text, then the default character set is restored: USE CHARACTER SET("UTF-16LE";0) ` Use the UTF-16 'Little Endian' character set The OK system variable is set to 1 if the map is loaded correctly. Otherwise, it is set to 0. |
PROPERTIES
Product: 4D
INDEX HISTORY
Modified: 4D v11 SQL SEE ALSO
EXPORT DIF |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||