string.byte (s [, i [, j]])
s[i]
s[i+1]
s[j]
i
j
Note that numerical codes are not necessarily portable across platforms.