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

utf8.byte

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.


Returns the codepoints for the i-th through j-th character of the string passed.

Syntax

utf8.byte ( )

Code Examples

server

This example will print every codepoint in the input string to the server console.

local input = "Ницца!"
local codepoints = { utf8.byte( input, 1, utf8.len(input) ) }
for index, codepoint in ipairs( codepoints ) do
print( "Codepoint @ ".. index .." = ".. codepoint )
end

See Also