Re: Character encoding problem using Tcl - Mailing list pgsql-general

From Tom Lane
Subject Re: Character encoding problem using Tcl
Date
Msg-id 18958.977152401@sss.pgh.pa.us
Whole thread Raw
In response to Character encoding problem using Tcl  ("Johann Woeckinger" <johann.woeckinger@epluse.at>)
Responses Re: Character encoding problem using Tcl  ("Oliver Elphick" <olly@lfix.co.uk>)
List pgsql-general
"Johann Woeckinger" <johann.woeckinger@epluse.at> writes:
> But when using a Tcl-based interface (e.g. pgaccess or home made tcl
> based programs) to insert such characters into a table, they are not correct
> displayed on queries by use of psql - they appear as two 'unreadable'
> characters (they appear correct in queries done by the tcl application).

Hm.  Tcl 8 uses Unicode (UTF-8) representation internally.  It sounds
like the Unicode representation is getting sent straight to the database
rather than being converted into the character set the backend is
expecting.

We could fix this in libpgtcl if we could figure out what Tcl encoding
corresponds to the character set the backend is using.  I'm not sure
if that's easy or hard.

Alternatively, building Postgres with multibyte support and creating
your database with UNICODE encoding ought to work.

            regards, tom lane

pgsql-general by date:

Previous
From: John Burski
Date:
Subject: Re: Sequence
Next
From: Tom Lane
Date:
Subject: Re: More on character encoding in SELECTs