From: | Ken Benson <ken(at)infowerks(dot)com> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: Re: [NOVICE] Problems with ñ and tildes / CSV import problems in PostgreSQL 9.1 |
Date: | 2013-02-07 15:24:14 |
Message-ID: | 5113C71E.2020307@infowerks.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-novice |
I think the problem may be that specific character translation.
The chart I typically use is here:
http://www.utf8-chartable.de/unicode-utf8-table.pl
The 'valid' UTF-8 codes jump from /*0x e0 bf bf*/ (at the bottom of this
page: http://www.utf8-chartable.de/unicode-utf8-table.pl?start=3840 )
To: /*0x e1 80 80*/ (at the top of this page:
http://www.utf8-chartable.de/unicode-utf8-table.pl?start=4096
So - the problem may be that /*truly**0x e1 73 71*/ is not a valid UTF-8
character in the current iteration of PostgreSQL - or at all.
Jut my thoughts.
Ken
On 2/7/2013 7:03 AM, Jaime Casanova wrote:
> On Wed, Feb 6, 2013 at 7:56 PM, Zach Seaman <znseaman(at)gmail(dot)com> wrote:
>> I'm fairly new to PostgreSQL 9.1 but I need it, so here I am.
>>
>> This a similar question to this one, so I have encoded a database with
>> LATIN-1 as suggested but can't copy a CSV file into a table within the
>> database.
>>
> well, that mail is from 2005... what version of postgres are you running at?
>
>> ERROR: invalid byte sequence for encoding "UTF8": 0xe17371
>>
> run:
>
> SET client_encoding TO UTF8;
>
> before running the copy command, or maybe set to LATIN1
>
From | Date | Subject | |
---|---|---|---|
Next Message | Russell Keane | 2013-02-07 15:25:28 | 64 bit Win 2008, 32 bit client, ?bit Postgres? |
Previous Message | Tom Lane | 2013-02-07 15:04:20 | Re: feature requests (possibly interested in working on this): functional foreign keys |
From | Date | Subject | |
---|---|---|---|
Next Message | Zach Seaman | 2013-02-07 16:01:28 | Re: [NOVICE] Problems with ñ and tildes / CSV import problems in PostgreSQL 9.1 |
Previous Message | Jaime Casanova | 2013-02-07 15:03:55 | Re: [NOVICE] Problems with ñ and tildes / CSV import problems in PostgreSQL 9.1 |