-- string.byte gives the code of a character print(string.byte("A")) -- a range returns several codes print(string.byte("ABC", 1, 3))
string.byte returns numeric codes