Skip to content

raylib.LoadUTF8

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Encode text codepoint into UTF-8 text REQUIRES: memcpy() WARNING: Allocated memory must be manually freed

Parameters

Parameter Default Value Note
codepoints

Return value

Condition Return Value
(always) string

Notes

Example

// Convert a list of codepoints back into a UTF-8 string
codepoints = [72, 101, 108, 108, 111]  // "Hello"
s = raylib.LoadUTF8(codepoints)
print s  // "Hello"
raylib.UnloadUTF8 s

Clone this wiki locally