numToChar | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns the character corresponding to an ASCIIvalue. | ||||||
Introduced | 1.0 | ||||||
Changes | The ability to handle Unicode characters was introduced in version 2.0. In previous versions, it was not possible for the numToChar function to return a Unicode character. | ||||||
Deprecated | 7.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Parameters |
| ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: inverse, character Operator: mod Property: extendKey, charSet, HTMLText, useUnicode Function: uniEncode, nativeCharToNum, binaryEncode, numToCodepoint, macToISO, byteToNum, numToByte, binaryDecode, charToNum, numToNativeChar, toUpper, base64Encode, ISOToMac, toLower, codepointToNum Glossary: property, ASCII, return, Windows, character set, ISO 8859, Unix, Mac OS, Unicode Control Structure: function | ||||||
Description | Use the numToChar function to translate numbers into their character equivalents, or to interpret a character (such as a control character) that can't be displayed.
The numToChar function is the inverse of the charToNum function. If the ASCIIValue is between 127 and 255, the character returned by the numToChar function depends on the character set currently in use. On Mac OS systems this is usually the Macintosh character set; on Unix systems, this is usually ISO 8859; on Windows systems, this is usually Code Page 1252, a variant of ISO 8859. If the useUnicode property is set to true, the numToChar function returns a double-byte character. If the useUnicode is false and you specify an ASCIIValue greater than 255, the numToChar function returns the character corresponding to the ASCIIValue mod 256. | ||||||
Tags | text processing |