Re: Searching accented words - Mailing list pgsql-general

From Tom Lane
Subject Re: Searching accented words
Date
Msg-id 13800.1027543749@sss.pgh.pa.us
Whole thread Raw
In response to Searching accented words  (João Paulo Batistella <batistellabr@yahoo.com.br>)
Responses Re: Searching accented words
List pgsql-general
=?iso-8859-1?q?Jo=E3o=20Paulo=20Batistella?= <batistellabr@yahoo.com.br> writes:
> How can I perform a query that return the two rows, no
> matter I pass 'Jos�' or 'Jose' as parameter?

If your locale is set up correctly, perhaps upper() would return
JOSE for both, and then you could search on upper(name) = 'JOSE'.
(You can make this fast with an index on upper(name).)

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: COPY taking forever, I just want to end it!
Next
From: "Beth Gatewood"
Date:
Subject: Re: COPY taking forever, I just want to end it!