From: | "Magnus Hagander" <mha(at)sollentuna(dot)net> |
---|---|
To: | Sergio Luis Sánchez <sluis(at)tissat(dot)es>, <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: BUG #1576: Function UPPER does not give back the awaited results |
Date: | 2005-04-03 17:10:11 |
Message-ID: | 6BCB9D8A16AC4241919521715F4D8BCE6C71CB@algol.sollentuna.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
>Bug reference: 1576
>Logged by: Sergio Luis Sánchez
>Email address: sluis(at)tissat(dot)es
>PostgreSQL version: 7.4.3 and 8.0.1
>Operating system: linux (7.4.3) and WinXP (8.0.1)
>Description: Function UPPER does not give back the
>awaited results
>Details:
>
>Hi.
>
>I'm from Spain, and I am using a PostgreSQL as database
>system. Sorry for my
>English.
>
>I launch a select with the upper function to retrieve a text in capital
>letters. When I launch the function to text with accents
>(Usual in Spanish
>language), I get the marked words in lowercase, and it's wrong.
>
>To test it I launh this query:
>
>select upper('aeiouáéÃóúà èìòù');
>
>And the result was: "AEIOUáéÃóúà èìòù", when it must be
>"AEIOUÃÉÃÓÚÀÈÌÒÙ".
>
>I try this function with UNICODE and LATIN1 encodings, and I
>retrieve same result.
It shouldn't work in UNICODE - see http://pginstaller.projects.postgresql.org/FAQ_windows.html#2.6.
It should work in LATIN1 though. I've never had any problems with that part (use it for swedish chars all the time). Make sure you really switched the server side encoding (new initdb), and not just the client side.
//Magnus
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2005-04-03 17:13:26 | Re: windows installation |
Previous Message | Bruno Wolff III | 2005-04-03 13:00:58 | Re: BUG #1567: can't hide password with pg_autovacuum |