Hi,
I need to get all the characters of a string in a tab.
My string can own characters like “é”, “è”, “ê”,“â”
At this point I code this :
local myStringLength = string.len(myString) local stringTab = {} for i = 1, myStringLength do --get each character local currentCharacter = myString:sub(i,i) --insert each letter in a tab table.insert(stringTab, currentCharacter) end
My problem is that sub function doesn’t work when myString own “é”, “è”, “ê”,“â”.
What can I do to fix that?
Any help would be really appreciated
Thank you