Re: ProblemWithCharsOSX

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ProblemWithCharsOSX
Дата
Msg-id 26575.1345077467@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ProblemWithCharsOSX  (Angel Zúñiga <junior@ciencias.unam.mx>)
Список pgsql-bugs
Angel Zúñiga <junior@ciencias.unam.mx> writes:
> I'm a PostgreSQL user in the linux world but at the office there is a Mac
> computer and I have a problem with postgres in it.

> The problem is when I use characters with tildes in spanish like in the
> follow word "pa�ses".
> The next is ilustrates my problem:

> test=# SHOW SERVER_ENCODING;
>  server_encoding
> -----------------
>  UTF8
> (1 row)

> test=# SELECT pg_client_encoding();
>  pg_client_encoding
> --------------------
>  UTF8
> (1 row)

> test=# CREATE TABLE pa�ses (nombre VARCHAR(10));
> CREATE TABLE
> test=# \d
>         List of relations
>  Schema | Name  | Type  | Owner
> --------+-------+-------+--------
>  public | pases | table | dragon
> (1 row)

FWIW, I cannot reproduce that as stated on my own Mac.  I suspect though
that the problem is not with Postgres per se but with your terminal
window.  If you're using Terminal, check the encoding setting in
Preferences ... Settings, and also look at Preferences ... Encodings.
You'll probably have trouble unless Terminal is using the same encoding
that psql thinks the client_encoding is.
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #7498: Questionable interval parsing when in the form 'n m days'
Следующее
От: Daniel Farina
Дата:
Сообщение: Re: BUG #7498: Questionable interval parsing when in the form 'n m days'