Re: [GENERAL] Remove diacritical marks in SQL

2007-01-14 Thread Michael Fuhr
On Fri, Jan 12, 2007 at 10:58:36PM +0100, Martijn van Oosterhout wrote: > On Fri, Jan 12, 2007 at 10:16:22PM +0100, Jiří Němec wrote: > > 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

Re: [GENERAL] Remove diacritical marks in SQL

2007-01-12 Thread Martijn van Oosterhout
On Fri, Jan 12, 2007 at 10:16:22PM +0100, Ji?í N?mec wrote: > 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') I don't think postgres has an

[GENERAL] Remove diacritical marks in SQL

2007-01-12 Thread Jiří Němec
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. ---