From: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Cc: | "Wang, Mary Y" <mary(dot)y(dot)wang(at)boeing(dot)com>, Alban Hertroys <dalroi(at)solfertje(dot)student(dot)utwente(dot)nl> |
Subject: | Re: ERROR: character 0x90 of encoding "WIN1252" has no equivalent in "UTF8" |
Date: | 2010-06-05 17:08:23 |
Message-ID: | 201006051008.23758.adrian.klaver@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Saturday 05 June 2010 7:07:35 am Wang, Mary Y wrote:
> Thanks Alban, but I'm still confused.
> I just read the PostgreSQL manual, and got the impression that UTF8 would
> take care of ALL character sets, so I put SET client_encoding = 'UTF8' in
> the dump file, and reload it again, then I got even more errors like:
> psql:/tmp/060410finalsr15dump.txt:31430: ERROR: invalid byte sequence for
> encoding "UTF8": 0x93 psql:/tmp/060410finalsr15dump.txt:31795: ERROR:
> invalid byte sequence for encoding "UTF8": 0x93
> psql:/tmp/060410finalsr15dump.txt:31826: ERROR: invalid byte sequence for
> encoding "UTF8": 0x85 psql:/tmp/060410finalsr15dump.txt:31827: ERROR:
> invalid byte sequence for encoding "UTF8": 0x92
> psql:/tmp/060410finalsr15dump.txt:31874: ERROR: invalid byte sequence for
> encoding "UTF8": 0x93 psql:/tmp/060410finalsr15dump.txt:32111: ERROR:
> invalid byte sequence for encoding "UTF8": 0x93
> psql:/tmp/060410finalsr15dump.txt:32112: ERROR: invalid byte sequence for
> encoding "UTF8": 0x92
>
> What is the client encoding that I should set to so that it would take care
> all character sets?
> http://www.postgresql.org/docs/8.3/interactive/multibyte.html
>
> Any suggestions?
> Thanks
> Mary
>
I am afraid it does not work that way. You have to think translation tables. In
order for the process to work Postgres needs to know the correct encoding it is
receiving in order to make the translation to UTF8. Much the same problem as
giving someone who knows how to translate French to English, a document that
contains a mixture of words in different languages. If they don't know what the
words are they cannot be translated.
--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Ken Winter | 2010-06-05 17:38:32 | Re: Null comparisons and the transform_null_equals run-time parameter |
Previous Message | Steve Atkins | 2010-06-05 17:04:06 | Re: Null comparisons and the transform_null_equals run-time parameter |