string.char()

Type Function
Library string.*
Return value String
Revision 2017.3060
Keywords string, char, numerical code, characters
See also string.byte()

Overview

Returns a string in which each character has the internal numerical code equal to its corresponding argument.

Note that the numerical codes are not necessarily portable across platforms.

Syntax

string.char( [arg1 [, ...] )
arg1 (optional)

Number. Zero or more integers (whole numbers).

Example

print( string.char( 65,66,67 ) )  --> ABC
print( string.char() )            --> empty string