codepoint - Convert Unicode into numeric value
The codepoint
function will convert a Unicode string value into its numeric representation.
Syntax
Arguments
Name | Type | Required | Description |
---|---|---|---|
string | string | true | The unicode character to convert to a numeric value |
Example - Encoding non-standard characters
Consider the following document:
We can take the Unicode value and encode it into its numeric form, using the codepoint
function.
This will result in a document that looks like this:
Theme
Light