lua string.upper not working with accented characters?

Viewed 2875

I'm trying to convert some French text to upper case in lua, it is not converting the accented characters. Any idea why?

test script:

print('échelle')
print(string.upper('échelle'))
print('ÉCHELLE')
print(string.lower('ÉCHELLE'))

output:

échelle
éCHELLE
ÉCHELLE
Échelle

4 Answers
Related