UCToString (open)

Convert a character code to a UNICODE(UTF-8) sequence

Syntax

// Core function, no LOADLIB necessary

STRING FUNCTION UCToString(INTEGER charactercode)

Parameters

INTEGER charactercode

Integer containing character code to convert

Return value

STRING

A string containing the requested character code as a single character

Description

Convert an character to a single-byte ASCII string or UTF-8 character sequence

Examples

//Returns "A"
STRING str_a := UCToString(65);

//Encodes the euro-sign into a three-character UTF-8 sequence
STRING str_euro := UCToString(8364);