string.char

Converts ASCII codes into their equivalent characters

Prototype

s = string.char (n1, n2, n3, ...)

Description

Receives 0 or more numbers and converts them to the corresponding characters. The inverse operation is carried out by string.byte.

print (string.char (65, 66)) --> AB

Lua functions

Topics