This article is half-done without your Comment! *** Please share your thoughts via Comment ***
In this post, I am sharing the use of “unaccent” extension of PostgreSQL.
Use unaccent, for removing diacritic signs from the string and convert into the valid character as per the specified collation.
When we are importing data from different types of datasets, we can find diacritic signs in the data. We can use unaccent() for removing those signs.
Check below demonstration:
Create an extension:
1 |
CREATE EXTENSION unaccent; |
Use unaccent():
1 |
SELECT unaccent('ô ã À Æ ß Ä'); |
Result:
1 2 3 |
unaccent ------------------ 'o a A AE ss A' |
Leave a Reply