postgresql_16:9.6.48.3 Functions
PostgreSQL 16 > Appendixes > Additional Supplied Modules and Extensions > unaccent — a text search dictionary which removes diacritics > Functions
The unaccent() function removes accents (diacritic signs) from a given string. Basically, it's a wrapper around unaccent-type dictionaries, but it can be used outside normal text search contexts.
unaccent(dictionary regdictionary, string text) returns text
If the *dictionary* argument is omitted, the text search dictionary named unaccent and appearing in the same schema as the unaccent() function itself is used.
For example: SELECT unaccent('unaccent', 'Hôtel'); SELECT unaccent('Hôtel');