Returns a character given an integer octet or an array of integer octets.
Requires [lp_math_decToOctet], [lp_math_hexToDec]
Parameters
-bytes
integer, required
An integer octet to convert to a character. Optionally may pass it as an array of integer octets.
-character_set
string, optional
The character set to use for encoding. Default is to use the outgoing encoding.
-hex
boolean, optional
Optionally allows passing hex values instead of decimal values.
Sample Usage
For UTF-8:
[lp_string_chr: (lp_math_hextodec: 'C2A9')]<br>
[lp_string_chr: 84] returns 'T'<br>
[lp_string_chr: (array: 195, 164)] returns ä (a with umlaut)<br>
[lp_string_chr: 50084] returns ä (a with umlaut)<br>
[lp_string_chr: (array: 226,130,172)] returns euro symbol<br>
Source Code
Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.