Re: [NOVICE] Re: [NOVICE] Re: [NOVICE] Problems with ñ and tildes / CSV import problems in PostgreSQL 9.1

From: Michael Swierczek <mike(dot)swierczek(at)gmail(dot)com>
To: Zach Seaman <znseaman(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Ken Benson <ken(at)infowerks(dot)com>, "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: [NOVICE] Re: [NOVICE] Re: [NOVICE] Problems with ñ and tildes / CSV import problems in PostgreSQL 9.1
Date: 2013-02-07 18:02:05
Message-ID: CAHp1f1N6Fr64sNE2cntPzKeaBd8nrSyUz69rfdhUAUUaQMo0fw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

On Thu, Feb 7, 2013 at 12:05 PM, Zach Seaman <znseaman(at)gmail(dot)com> wrote:
>
> Keeping the names, in tact, would be helpful. Whatever I change it to, I receive the same error because of the first entry.
>
> I've encoded the csv using Notepad++ to UTF8 and still no luck.
>
> I think "á" followed by the next 2 characters causes the problem. Is there a better encoding for special characters? Is this possible in WIN-1252?

Zach,
I've been bitten by this misunderstanding myself. Changing the file
encoding in Notepad++ just changes a few bytes at the very beginning
of the file to indicate that it's supposed to be read as your new
encoding. It does not automatically go through the file converting
character like "à" from its 224 (decimal) character value in LATIN1
encoding to the U+00E0 UTF-8 equivalent. Maybe some other text
editors support actually re-encoding the characters in the file for
you, I don't know.

Good luck,
-Mike Swierczek

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Milos Gajdos 2013-02-07 18:18:18 Postgres 9.1 statistics in pg_stat_database
Previous Message Zach Seaman 2013-02-07 17:59:08 Re: [NOVICE] Re: [NOVICE] Re: [NOVICE] Problems with ñ and tildes / CSV import problems in PostgreSQL 9.1

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lisjac 2013-02-09 02:16:40 Automatic transactions in SELECT...
Previous Message Zach Seaman 2013-02-07 17:59:08 Re: [NOVICE] Re: [NOVICE] Re: [NOVICE] Problems with ñ and tildes / CSV import problems in PostgreSQL 9.1