From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Mikko <mhannesy(at)gmail(dot)com> |
Cc: | Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: trouble with to_char('L') |
Date: | 2009-04-21 17:13:38 |
Message-ID: | 20090421171338.GR10358@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Mikko escribió:
> 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".
FWIW 0x80 is the Euro symbol in Win1252 according to
http://en.wikipedia.org/wiki/Windows-1252
Maybe the problem here is that the chosen locales are not UTF8. Does it
work if you set lc_numeric and lc_monetary to "Finnish_Finland.65001"
instead? Those should match the server_encoding.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From | Date | Subject | |
---|---|---|---|
Next Message | marek.patrzek | 2009-04-21 17:26:24 | Yet another "drop table vs delete" question |
Previous Message | jc_mich | 2009-04-21 17:03:53 | Re: Doubt about join queries |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2009-04-21 17:22:11 | Re: [ADMIN] License Issue |
Previous Message | David Fetter | 2009-04-21 17:07:58 | Re: psql with "Function Type" in \df |