Remove diacritical marks in SQL - Mailing list pgsql-general

From Jiří Němec
Subject Remove diacritical marks in SQL
Date
Msg-id 16651036.20070112221622@menea.cz
Whole thread Raw
Responses Re: Remove diacritical marks in SQL  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
Hello,

I would like to remove diacritical marks from a string in a SQL query.
I tried to convert a UTF8 string to ASCII but it doesn't work for me.

SELECT convert('ěščřžýáíé','UTF8','SQL_ASCII')

array(1) {
  ["convert"]=>
  string(18) "ěščřžýáíé"
}

Thanks for any advice,

J.N.


pgsql-general by date:

Previous
From: "Brandon Aiken"
Date:
Subject: Re: FK Constraint on index not PK
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Remove diacritical marks in SQL