char-from-code()
This function returns the corresponding characters for the character codes in a. Optionally, the characters can additionally be written into a list d.
Parameters
Parameter |
Description |
a |
One or more character codes in decimal, hexadecimal or Unicode notation. Values with prefix 0x are interpreted as hexadecimal values and values with prefix \u as Unicode (\uxxxx). See examples below. Allowed delimiters: blank, tabulator, comma or semicolon. Successive delimiters are interpreted as a single one. |
b |
(optional) The delimiter between the single return characters (does not apply to the list). The delimiter can also be specified in Unicode notation (\uxxxx) (see examples below). If multiple delimiters are specified, only the first one is used. Default: No delimiter. |
c |
(optional) If true, an erroneous code in a leads to an error. If false, erroneous codes in a are returned as empty characters. Default: false. Note: Erroneous Unicode in parameter b always leads to an error. |
d |
(optional) Name of the list into which the result is written as strings (a list entry for each converted character). Before use, the list is emptied. If no value is specified, no list will be created. |
Examples
Parameter a |
Parameter b |
Parameter c |
Parameter d |
Return Value |
Values in List d |
0x42 \u20AC, 80, \unix |
|
|
|
B€P |
|
0x42 \u20AC, 80, \unix |
µ |
|
|
Bµ€µPµ |
|
0x42 \u20AC, 80, \unix, 0Xfedcba |
\u044f |
|
list1 |
Bя€яPяя |
B,€,P,, |
0x42 \u20AC, 80, \unix, 0Xfedcba |
\u044f |
false |
|
Bя€яPяя |
|
;;65 |
# |
true |
list2 |
#A |
,A |
;; 0Xfedcba |
# |
true |
|
Function creates an exception. |
|