string.normalize(str)

Normalize the string : All accentued characters are replaced by non accentued ones.

Parameters

str

A string that will be normalized.

Return value

Returns a new string with the same content but normalized.

Example

local summer_in_french = "été" -- prints the string, but normalized -- should output "ete" print(summer_in_french:normalize())