In my mysql database I have a city name in utf-8: "Bucureşti"
And if I do
SELECT *
FROM cities
WHERE name LIKE 'Bucuresti'; <- without diacritic 'ş' it works in MySQL.
How can I achieve this in postgresql also?
In my mysql database I have a city name in utf-8: "Bucureşti"
And if I do
SELECT *
FROM cities
WHERE name LIKE 'Bucuresti'; <- without diacritic 'ş' it works in MySQL.
How can I achieve this in postgresql also?
Checkout out the unaccent
extension, which is part of the contrib package.