utf8.char | Multi Theft Auto: Wiki Skip to content

utf8.char

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


Generates a string representing the character codepoints as arguments.

Syntax

utf8.char ( )

Code Examples

server

This example separates an input string into single codepoints and then joins these back together, representing the original input string.

local input = "Hello World"
local codepoints = { utf8.byte( input, 1, utf8.len(input) ) }
local joined = utf8.char( unpack(codepoints) )
print( joined ) -- Hello World

See Also