Skip To Content

INTEGRAL

INTEGRAL DSL Reference Guide

Jump directly to: 

::my.app.ToUTF8(value_int)

This function takes a single character codepoint and returns a string in UTF-8 format representing that character codepoint.

Parameters

value_int

An integer representing the character codepoint to convert to a string in UTF-8 format.

Return Value

The function returns a string in UTF-8 format representing the input character codepoint.

Example 1

::my.app.Print(::my.app.ToUTF8(65));

Result:

A (byte sequence: 0x41)

Example 2

::my.app.Print(::my.app.ToUTF8(931));

Result:

Σ (byte sequence: 0xCE, 0xA3)

Example 3

::my.app.Print(::my.app.ToUTF8(0x5929));

Result:

天 (byte sequence: 0xE5, 0xA4, 0xA9)