From: | "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at> |
---|---|
To: | "Mikko *EXTERN*" <mhannesy(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: trouble with to_char('L') |
Date: | 2009-04-21 10:36:44 |
Message-ID: | D960CB61B694CF459DCFB4B0128514C202FF6590@exadv11.host.magwien.gv.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Mikko wrote:
> my database has UTF8 encoding and Finnish locale, the client_encoding
> and the console is set to WIN1252. I created a table with a single
> NUMERIC(5,2) column and inserted a few values. Running a query 'SELECT
> to_char(money, '999D99L') FROM table' through psql gives the following
> error message:
>
> 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".
>
> The graphical Query tool returns a set of empty rows. The query works
> ok without the 'L'.
That is strange.
What is your psql version?
What is the output of the following commands:
SHOW server_version;
SHOW server_encoding;
SHOW client_encoding;
SHOW lc_numeric;
SHOW lc_monetary;
SELECT to_char(3.1415::numeric(5,2), '999D99L');
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Geoff Caplan | 2009-04-21 11:02:02 | This is my first template |
Previous Message | John DeSoi | 2009-04-21 02:13:53 | Re: converting from bytea to integers |
From | Date | Subject | |
---|---|---|---|
Next Message | Abhijit Menon-Sen | 2009-04-21 10:46:04 | Re: [PATCH] Add a test for pg_get_functiondef() |
Previous Message | vacuum | 2009-04-21 09:38:06 | 8.4 semi-join slows down query performance (EXISTS) |