trouble with to_char('L')

Поиск
Список
Период
Сортировка
От Mikko
Тема trouble with to_char('L')
Дата
Msg-id 40c6d9160904201400n79f19a05w64455ba59428a920@mail.gmail.com
обсуждение исходный текст
Ответы Re: trouble with to_char('L')  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Список pgsql-general
Hi,

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'.

Thanks in advance,
Mikko

В списке pgsql-general по дате отправления:

Предыдущее
От: Matthew Pugsley
Дата:
Сообщение: update one table with another
Следующее
От: "Daniel Verite"
Дата:
Сообщение: Re: converting from bytea to integers