pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Angel Zúñiga <junior@ciencias.unam.mx>
Cc: pgsql-bugs@postgresql.org
Subject: Re: ProblemWithCharsOSX
Date: Wed, 15 Aug 2012 20:37:47 -0400
Message-ID: <26575.1345077467@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB849dZdwFxtVCmUz9JMyyGh_aaOeUw=Vs=-EsoNiZrMZ0VD+w@mail.gmail.com>
References: <CAB849dZdwFxtVCmUz9JMyyGh_aaOeUw=Vs=-EsoNiZrMZ0VD+w@mail.gmail.com>

=?ISO-8859-1?B?QW5nZWwgWvrxaWdh?= <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




view thread (2+ messages)

Message-ID: <26575.1345077467@sss.pgh.pa.us>
Permalink:  ../26575.1345077467@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26575.1345077467@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, junior@ciencias.unam.mx
  Subject: Re: ProblemWithCharsOSX
  In-Reply-To: <26575.1345077467@sss.pgh.pa.us>
  References: <CAB849dZdwFxtVCmUz9JMyyGh_aaOeUw=Vs=-EsoNiZrMZ0VD+w@mail.gmail.com> <26575.1345077467@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox