Re: encoding

From: Marko Ristola <marko(dot)ristola(at)kolumbus(dot)fi>
To: Joel Fradkin <jfradkin(at)wazagua(dot)com>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: encoding
Date: 2005-05-11 18:16:35
Message-ID: 42824C03.6060301@kolumbus.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi

Database's charset must be something other than plain ASCII.
(Same thing needs to be in Windows.)

Client charset is defined by environment variables.
PostgreSQL Server charset is defined at least in database creation.

When charsets are defined correctly, the PostgreSQL does know
the charsets and can do client charset conversions.

The newest Windows ODBC driver requires correct locale settings.
Maybe the older PostgreSQL server + ODBC driver don't do any
conversions, thus they just works, in that case, when there
is no need for charset conversions.

What is you PostgreSQL server's database locale setting?
Please see documentation for "create database",
and INITDB commandline tools for charset selection.

I hope this helps. I'm interested in charset alterations in ODBC, but
I don't know the psqodbc charset alteration history, or the last version's
functionality, well enough, to give robust answers.

Marko Ristola

Joel Fradkin wrote:

>I just wanted to document a recent issue, it may be that I am not aware of
>the proper way to use encoding with the 8.0 versions of odbc.
>
>With 7.4 I was getting char codes correctly from the odbc.
>
>With version 8. (just downloaded) I had a issue on my windows 2000 servers
>displaying question marks instead of the French chars.
>
>I was testing on win2003 with 7.4, so I switched the win2k machines and they
>display correctly (I amusing asp).
>
>
>
>Joel Fradkin
>
>
>
>Wazagua, Inc.
>2520 Trailmate Dr
>Sarasota, Florida 34243
>Tel. 941-753-7111 ext 305
>
>
>
>jfradkin(at)wazagua(dot)com
>www.wazagua.com
>Powered by Wazagua
>Providing you with the latest Web-based technology & advanced tools.
>C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
> This email message is for the use of the intended recipient(s) and may
>contain confidential and privileged information. Any unauthorized review,
>use, disclosure or distribution is prohibited. If you are not the intended
>recipient, please contact the sender by reply email and delete and destroy
>all copies of the original message, including attachments.
>
>
>
>
>
>
>
>
>
>
>

In response to

  • encoding at 2005-05-11 16:43:43 from Joel Fradkin

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Joel Fradkin 2005-05-11 18:54:13 Re: encoding
Previous Message Joel Fradkin 2005-05-11 16:43:43 encoding