char-from-code
Returns the character representation of the decimal Unicode value (code) supplied as argument. Tip: To find the Unicode decimal code of a character, you can use the code-from-char function.
Languages
Built-in, C++, C#, Java, XQuery, XSLT 2.0, XSLT 3.0.
Parameters
Name | Description |
---|---|
code | The Unicode value, as a decimal number. |
Example
According to the charts available on the Unicode website (https://www.unicode.org/charts/), the exclamation mark character has the hexadecimal value of 0021. The corresponding value in decimal format is 33. Therefore, supplying 33 as argument to the char-from-code function will return the ! character.