Re: trouble with to_char('L') - Mailing list pgsql-general

From Mikko
Subject Re: trouble with to_char('L')
Date
Msg-id 40c6d9160904210658y590377cfw6dbbecb53d2b8be0@mail.gmail.com
Whole thread Raw
In response to Re: trouble with to_char('L')  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Responses Re: trouble with to_char('L')
List pgsql-general
psql (PostgreSQL) 8.3.7

server_version 8.3.7
server_encoding UTF8
client_encoding win1252
lc_numeric Finnish, Finland
lc_monetary Finnish, Finland

testdb=# SELECT to_char(3.1415::numeric(5,2), '999D99L');

ERROR:  invalid byte sequence for encoding "UTF8": 0x80
HINT:  This error can also happen if the byte sequence does not match
the encoding expected by the server, which is controlled by
"client_encoding".

If connected to postgres database the query returns 3,14.

Mikko

pgsql-general by date:

Previous
From: ray
Date:
Subject: Re: Re-Install data folder failure
Next
From: Michael Nolan
Date:
Subject: Re: Doubt about join queries