Returns the text without diacritical characters.
String.RemoveDiacritics()
Where:
String
Is an attribute or variable based on the Character/VarChar/LongVarChar data type.
Type returned
Character
Data Types: Character, VarChar, LongVarChar
Generators: .NET,
.NET Framework, Java, Android, Apple
&Text = "áéíóú"
&TextNoDiacritics = &Text.RemoveDiacritics() // Result: "aeiou"
if &TextNoDiacritics = 'aeiou'
//Success evaluation
endif
This feature is available since GeneXus X Evolution 3.
Note: This method is useful in conditions evaluated on client side. On the server side this could be solved by the
DBMS, for example
SQL Server.
Diacritic