useUnicode | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Specifies whether the charToNum and numToChar functions assume a character is double-byte. | ||||||
Introduced | 2.0 | ||||||
Changes | As of LiveCode 7.0 the useUnicode property is deprecated. | ||||||
Deprecated | 7.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Property: allowInlineInput, unicodeText Function: charToNum, numToChar | ||||||
Description | Use the useUnicode property to prepare to convert between Unicode characters and their numeric values. If the useUnicode property is set to true, the numToChar and charToNum functions use double-byte characters. You can pass a number greater than 255 to the numToChar function in order to generate a double-byte character, and you can pass a double-byte character to the charToNum function. If the useUnicode is false, the numToChar and charToNum functions use single-byte characters. Passing a double-byte character to charToNum or a number larger than 255 to numToChar will produce incorrect results if the useUnicode is false. Since the useUnicode is a local property, its value is reset to false when the current handler finishes executing. It retains its value only for the current handler, and setting it in one handler does not affect its value in other handlers it calls.
| ||||||
Tags | text processing |