pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ivo Rossacher <rossacher@bluewin.ch>
To: pgsql-admin@postgresql.org
Subject: Re: UTF8 characters
Date: Tue, 25 Jul 2006 19:39:32 +0200
Message-ID: <200607251939.33084.rossacher@bluewin.ch> (raw)
In-Reply-To: <1c66bda80607250327k445186cesa5e36430929a4a22@mail.gmail.com>
References: <20060714154218.10234.qmail@web55703.mail.re3.yahoo.com>
	<200607211842.14935.peter_e@gmx.net>
	<1c66bda80607250327k445186cesa5e36430929a4a22@mail.gmail.com>

Well the server does have the capability to convert from the server encoding 
to the client encoding and the other way around. To get this working you need 
a server encoding which can be convertet to the clientencoding. UNICODE 
(UTF8) is a good starting point here.
Now the server needs to know waht the encoding of the client is.
You can set the client encoding from the client by sending "set 
client_encoding to <whatever it is>" to the server after the connection is 
started.
There are other ways which can solve other problems (see character set support 
in the manual), for my application this way wroked best and makes it simple 
to work with different clientencodings.

Best regards
Ivo

Am Dienstag, 25. Juli 2006 12.27 schrieb adey:
> I had the same problem when upgrading v7.4 database to v8, SQL-ASCII to
> UTF8 - we had to replace single backslashes with double backslashes in the
> v7 database to get the data to display correctly, then dump and restore in
> v8 / UTF8. Have we done something wrong please?
>
> On 7/22/06, Peter Eisentraut <peter_e@gmx.net> wrote:
> > PostgreSQL Admin wrote:
> > > I had my database set to SQL_ASCII and switched to UTF8, but now I
> > > notice that I must add a slash for periods/dots ( \. vs . ) to insert
> > > into varchar.   Is this normal?
> >
> > No.
> >
> > --
> > Peter Eisentraut
> > http://developer.postgresql.org/~petere/
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 4: Have you searched our list archives?
> >
> >               http://archives.postgresql.org



view thread (4+ messages)

Message-ID: <200607251939.33084.rossacher@bluewin.ch>
Permalink:  ../200607251939.33084.rossacher@bluewin.ch/
Also on:    postgresql.org/message-id/200607251939.33084.rossacher@bluewin.ch

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: rossacher@bluewin.ch
  Subject: Re: UTF8 characters
  In-Reply-To: <200607251939.33084.rossacher@bluewin.ch>
  References: <20060714154218.10234.qmail@web55703.mail.re3.yahoo.com> <200607211842.14935.peter_e@gmx.net> <1c66bda80607250327k445186cesa5e36430929a4a22@mail.gmail.com> <200607251939.33084.rossacher@bluewin.ch>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox