You have some utf-8 characters to give me? (i need it!)

Hello for my datastore script, I need some utf-8 characters to have.
I view many website but roblox don’t count this to be a utf-8.
Because there are many errors type of no utf-8.

For the moment i have this:
aezrtyuiopqsdfghjklmwxcvbnAEZRTYUIOPQSDFGHJKLMWXCVBN0.321456987+-*/<>!:?%$*^=)_-\\[]{}

So complete the list!

1 Like

You can just run a simple for loop to get utf-8 characters.

for i = 0x00, 0x3ff do
    --          ^ there are much more than this
    print(utf8.char(i))
end

I forgot to change string to utf-8!
Solution: utf8.char(string.byte(chars,i,i))

You can also write your loop like this:

local function create_scoped_tokens(chars)
	local tbl = {}
	for start, stop in utf8.graphemes(chars) do
        -- start: where the first byte sequence starts
        -- stop: where the last byte sequence ends
		table.insert(tbl, string.sub(chars, start, stop))
	end
	return tbl
end
local scoped_tokens = create_scoped_tokens("awqsxzedcvgfrtbnhyujkiolpmMPLKIOUJNBHYTGVFREDCXSZAQW0.321456987+-*/<>!:?%$*^=)_-\\[]{}ȚșȘȓȐȆǿŮŧ")
print(scoped_tokens)

Thank you so much! I appreciated!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.