Re: convert accented character to base character

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: convert accented character to base character
Date: 2010-06-28 15:40:29
Message-ID: 4C28C26D.7000802@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 06/28/10 8:22 AM, Neubert Joachim wrote:
>
> I want to convert accented characters to the according base character,
> e.g. "Ü" or "Ú" to "U".
>
> Is there a way to do this with pgsql functions?
>
>

translate(somestring, 'ÙÚÛÜŨŪŬŮŰŲùúûüũūŭůűų', 'UUUUUUUUUUuuuuuuuuuu')

of course, expand those with all the other characters you want translated.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message dario.ber@libero.it 2010-06-28 15:41:00 postgres user password: Log on failure
Previous Message Thom Brown 2010-06-28 15:33:18 Re: convert accented character to base character