Well, I realized that in Lua, it is not possible to use letters with an accent.
print("á")
Returns an invalid character. Is there any way to avoid this?
Well, I realized that in Lua, it is not possible to use letters with an accent.
print("á")
Returns an invalid character. Is there any way to avoid this?
Totally possible, but you need to set the appropriate locale. For this you can use the os.setlocale (locale \[, category\])
function that will define the locale for the program:
Example:
os.setlocale("pt_PT")
or
os.setlocale("pt_PT.iso88591")
You can see the example in the Ideone .
If none is set, the system is used.