Re: Different encoding for string values and identifier strings? Or (select 'tést' as tést) returns different values for string and identifier...

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Different encoding for string values and identifier strings? Or (select 'tést' as tést) returns different values for string and identifier...
Date: 2011-03-15 18:21:18
Message-ID: 20110315182118.GA28744@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Francisco Figueiredo Jr. <francisco(at)npgsql(dot)org> wrote:

> Hi all!
>
> I received a bug report about problems with identifiers.
>
> If I do the following select:
>
> select 1 as tést
>
> The column name returned contains strange chars.
>
> If I do:
>
> select 'tést' as tést
>
> the select value returned is ok but the column name is not. :(
>
> Is there any configuration I need to change to specify the encoding of
> the identifiers?

test=# select 'tést' as "tést";
tést
------
tést

looks okay for me ...

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Francisco Figueiredo Jr. 2011-03-15 18:25:56 Re: [GENERAL] Different encoding for string values and identifier strings? Or (select 'tést' as tést) returns different values for string and identifier...
Previous Message general_lee 2011-03-15 18:14:45 Re: How to add hosts to pg_hba.conf and postgresql.conf?