From: Joel Fradkin <jfradkin@wazagua.com>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
Cc: pgsql-odbc@postgresql.org
Subject: Re: encoding using the odbc driver
Date: Fri, 18 Feb 2005 15:30:56 -0500
Message-ID: <000101c515f8$c3764d30$797ba8c0@jfradkin> (raw)
In-Reply-To: <20632.1108757892@sss.pgh.pa.us>
IT is coming from MSSQL server going to Redhat AS.
I looked it up and see (as one other lister mentioned and I was a bit
ignorant) it is SQL_LATIN_General_CP1_CI_AS.
I would like for the lower function to work correctly.
I will try making a database Latin 1 and see if I get it to both load and
have a functioning lower sql statement.
Thanks again for all the insight, whish I understood it all better, but I am
more of a programmer then systems guy (I wear too many hats).
"Joel Fradkin" <jfradkin@wazagua.com> writes:
> It failed on French strings we had in the database (this was confusing as
it
> had worked prior). After looking at it I isolated the issue to the
encoding
> being Unicode (the odbc driver loads the data base when the data base is
> SQL_ASCII, but not when it is Unicode; I thought I would want Unicode).
That means that the data you have is not in Unicode, but some other
encoding (and no, I cannot tell what from this information). You can
load it into the database only by setting client_encoding to tell what
encoding the data is, so that the server can convert it to Unicode
correctly.
BTW, I believe that server_encoding = UNICODE doesn't currently work
well on Windows, due to inadequate support from the operating system.
So that could be contributing to your problems as well, if you're
trying to run the server on Windows.
If you don't know and don't care what encoding you're using, you're
best off to set server_encoding = SQL_ASCII; that is more or less meant
to describe that state of ignorance ;-)
regards, tom lane
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-odbc@postgresql.org
Cc: jfradkin@wazagua.com, tgl@sss.pgh.pa.us
Subject: Re: encoding using the odbc driver
In-Reply-To: <000101c515f8$c3764d30$797ba8c0@jfradkin>
References: <20632.1108757892@sss.pgh.pa.us> <000101c515f8$c3764d30$797ba8c0@jfradkin>
* 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