Salesforce

How Do I Convert the Unicode Value to a Unicode Character? (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Convert the Unicode Value to a Unicode Character? (Magic xpa 2.x)

You can convert a number into a Unicode character by using the UnicodeChr() function.

UnicodeChr(Number)

Where Number is a decimal number representing the Unicode value. This returns a Unicode character, which will display as the appropriate character in a Unicode field.

Note: The number here needs to be decimal, but the Unicode code pages are typically printed with hex codes. To translate these, you can use the HVal() function. For instance, UnicodeChr(HVal(3085)) will give the same result as the example above: UnicodeChr(12453).

See also

The Online and Rich Client Samples projects (program UN05 and RUN05)

Reference
Attachment 
Attachment