international characters and pg_select - Mailing list pgsql-interfaces

From Karri Kaksonen
Subject international characters and pg_select
Date
Msg-id 3C67ACBA.59254E98@ssh.com
Whole thread Raw
List pgsql-interfaces
Hi,

I have a problem with RedHat 7.2 and 
postgresql-7.1.3-2
postgresql-devel-7.1.3-2
postgresql-tcl-7.1.3-2
postgresql-libs-7.1.3-2
postgresql-server-7.1.3-2

For some reason I cannot make a query like:

pg_select $conn "select * from clubs where seura = 'Kemijärvi'" a {   puts stdout "$a(seura)";
}

The problem is that the letter ä makes the query fail.

To see if pgtclsh makes something weird I run

% binary scan "Kemijärvi" c* a
1
% set a
75 101 109 105 106 -28 114 118 105

So the letter ä it is mapped into one byte. No UTF-8 stuff
here.

The psql treats the letter ä perfectly. Same with my PHP-
scripts. Does somebody have a clue of what is going wrong?

I have a faint memory that my scripts worked perfectly with
RedHat 6.2 a looong time ago.

--
Yours,

Karri


pgsql-interfaces by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: odbc on unix
Next
From: "Carlos Moreno"
Date:
Subject: Re: C++: headache with PgDatabase::GetValue (int, string)