Official Content

Returns the text without diacritical characters.

Syntax

String.RemoveDiacritics()

Where:

String
   
Is an attribute or variable based on the Character/VarChar/LongVarChar data type.

Type returned
Character

Scope

Data Types: Character, VarChar, LongVarChar
Generators: .NET, .NET Framework, JavaAndroid, Apple

Samples

&Text = "áéíóú"   
&TextNoDiacritics = &Text.RemoveDiacritics()   // Result: "aeiou"
if &TextNoDiacritics = 'aeiou'
     //Success evaluation
endif

Availability

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.

 

See Also 

Diacritic

 


Last update: November 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant