Re: Insert Unicode

From: Tino Wildenhain <tino(at)wildenhain(dot)de>
To: Anthony <anthonykwok(at)writeme(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Insert Unicode
Date: 2002-04-16 13:30:39
Message-ID: 13445283.1018971038@buzzer
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

--On Dienstag, 16. April 2002 14:23 +0800 Anthony <anthonykwok(at)writeme(dot)com>
wrote:

> Hi all,
>
> I have created a UNICODE database using the 7.2.1. But I am not sure how
> to prepare an insert script to insert double byte unicode data (e.g.
> Chinese) to the tables. I tried to run the script under PGAdminII and
> also psql directly but always encounter problem say invalid UNICODe. Any
> escape character required?

If you run the database unicode, the default encoding is utf-8.
So either prepare your imports with that encoding or
switch the frontend-encoding with
set client_encoding to 'your-encoding-here'

Regards
Tino

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Fernando Schapachnik 2002-04-16 13:37:15 Compiling libpgtcl.dll
Previous Message Gavin Sherry 2002-04-16 13:26:35 Re: Testers needed ...