Re: UNICODE and SQL

From: Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: Ian Barwick <barwick(at)gmx(dot)net>
Cc: Marco Roda <MarcoRoda(at)amdosoft(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: UNICODE and SQL
Date: 2003-05-05 20:24:05
Message-ID: Pine.LNX.4.44.0305051822250.17972-100000@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, 5 May 2003, Ian Barwick wrote:

> On Monday 05 May 2003 15:34, Marco Roda wrote:
> > Hallo,
> >
> > I need to use SQL to insert some language specific characters into tables.
> > In particular I am using German and Croatian specific characters. The
> > database is created with UNICODE encoding.
> > For instance, when trying to run from psql:
> >
> > INSERT INTO test VALUES (1,'Urlaubslite fόr nδchstes Jahr');
> >
> > I get the following error:
> >
> > ERROR: Invalid UNICODE character sequence found (0xfc7220)
> >
> > because of 'ό' and 'δ'.
>
> What is your psql client encoding set to? Possibly you need
> to set it to LATIN1.

The UTF8 version of Latin1 is Latin1 itself,
but german and iso8859-2 serbocroatian are
non Latin1 (high ASCII) chars.

>
> Ian Barwick
> barwick(at)gmx(dot)net
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>

--
==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel: +30-210-8981112
fax: +30-210-8981877
email: achill(at)matrix(dot)gatewaynet(dot)com
mantzios(at)softlab(dot)ece(dot)ntua(dot)gr

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jeff Eckermann 2003-05-05 22:39:11 Re: Replication for a large database
Previous Message Alex Rice 2003-05-05 20:03:18 Re: 2 simple SQL questions: optimizing aggegate query