Re: Differences in UTF8 between 8.0 and 8.1 - Mailing list pgsql-hackers

From jtv@xs4all.nl
Subject Re: Differences in UTF8 between 8.0 and 8.1
Date
Msg-id 24573.125.24.8.136.1130390777.squirrel@125.24.8.136
Whole thread Raw
In response to Re: Differences in UTF8 between 8.0 and 8.1  (Andrej Ricnik-Bay <andrej.groups@gmail.com>)
List pgsql-hackers
Andrej Ricnik-Bay wrote:

> How about an ugly kludge  ...
>
> split -a 3 -d -b 1048576 ../path/to/dumpfile dumpfile
> for i in `ls -1 dumpfile*`; do   iconv -c -f UTF8 -t UTF8 $i;done
> cat dumpfile* > new_dump

Not with UTF-8...  You might break in the middle of a multibyte character.


Jeroen




pgsql-hackers by date:

Previous
From: Gayathri TK
Date:
Subject: Having trouble startin off with the code..
Next
From: Matteo Beccati
Date:
Subject: ERROR: invalid memory alloc request size