[postgresql-it] ASCII to Unicode convertion: SQL_ASCII --> UTF8

  • From: Ganimede <newtoolbox@xxxxxxxxx>
  • To: Postgresql IT <postgresql-it@xxxxxxxxxxxxx>
  • Date: Sun, 1 Jun 2008 05:19:43 -0700 (PDT)

Ciao,

convertire un database da ascci a unicode ? ... bè fino ad ora mi sono limitato 
a fare il dump del db, recrearlo con l'encoding UTF8 e poi ricaricavo il dump 
senza troppi problemi.

Questa volta non funziona, durante il restore compare questo messaggio:

ALTER FUNCTION
psql:station-1:29826: ERROR:  invalid byte sequence for encoding "UTF8": 
0xec2063
HINT:  This error can also happen if the byte sequence does not match the 
encoding expected by the server, which is controlled by "client_encoding".
CONTEXT:  COPY copie_tab, line 131
psql:station-1:30721: ERROR:  invalid byte sequence for encoding "UTF8": 
0xe36f20
HINT:  This error can also happen if the byte sequence does not match the 
encoding expected by the server, which is controlled by "client_encoding".
CONTEXT:  COPY dbobj_tab, line 211
psql:station-1:31956: ERROR:  invalid byte sequence for encoding "UTF8": 0x92
HINT:  This error can also happen if the byte sequence does not match the 
encoding expected by the server, which is controlled by "client_encoding".
CONTEXT:  COPY log_tab, line 474
psql:station-1:32485: ERROR:  invalid byte sequence for encoding "UTF8": 0x92
HINT:  This error can also happen if the byte sequence does not match the 
encoding expected by the server, which is controlled by "client_encoding".
CONTEXT:  COPY originali_tab, line 2
psql:station-1:41740: ERROR:  invalid byte sequence for encoding "UTF8": 0xb4
HINT:  This error can also happen if the byte sequence does not match the 
encoding expected by the server, which is controlled by "client_encoding".
CONTEXT:  COPY tracce_tab, line 608
ALTER TABLE


Qualche suggerimento su come intervenire ?

Grazie.
Ganimede Dignan.




Other related posts:

  • » [postgresql-it] ASCII to Unicode convertion: SQL_ASCII --> UTF8 - Ganimede