Re: How convert UNICODE

From: "lms" <piechcio(at)inetcafe(dot)eu(dot)org>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: How convert UNICODE
Date: 2006-11-19 00:33:57
Message-ID: 20061119003111.M86685@inetcafe.eu.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi
I must copy rows from local database (UNICODE) to remote database SQL_ASCII
(not on local machine) with converting selected columns to iso8859_2 or
iso_8859_5. Can I make it with COPY?

On Sat, 18 Nov 2006 09:42:14 -0500, Travis Whitton wrote
> You can use the postgresql COPY command to dump a single column to a file.
Do this for each column you need to convert. From there, use iconv to
convert the data. When you're done dumping and converting, use the unix
paste command to reassemble the data. If you're not on a unix-based
platform, a simple perl script should do the job.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Chris Tennant 2006-11-19 06:10:53 planner used functional index in 7.3.6, now does a seq scan in 7.4.7 after upgrade
Previous Message imad 2006-11-18 19:45:13 Re: transactional shared variable in postgresql