pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joel Fradkin <jfradkin@wazagua.com>
To: 'Marko Ristola' <marko.ristola@kolumbus.fi>
Cc: pgsql-odbc@postgresql.org
Subject: Re: encoding
Date: Wed, 11 May 2005 14:54:13 -0400
Message-ID: <000501c5565a$d3141040$797ba8c0@jfradkin> (raw)
In-Reply-To: <42824C03.6060301@kolumbus.fi>

The data base is SQL_ASCHII
I guess the locale is whatever it defaults to when you install from rpm on
redhat as4 not sure?
lc_messages = 'en_US.UTF-8'		# locale for system error message
strings
lc_monetary = 'en_US.UTF-8'		# locale for monetary formatting
lc_numeric = 'en_US.UTF-8'		# locale for number formatting
lc_time = 'en_US.UTF-8'			# locale for time formatting

The client is a win2k box.

I can see the chars look ok when I view using pgadmin.
.net was displaying them ok.
The old odbc driver was displaying them ok.

Just the new ODBC driver is doing something to them to make them appear as
question marks.

In any event I switched to the old driver and the site is ok.
I am very busy with after conversion repairs, but maybe later I can take a
closer look at if there is a better way (I am brain dead at the moment 75
hours last week and looking like that this week).

Unfortunately I am still having severe issues with speed and may need to use
my 2 proc SQL server for some reporting.

Joel Fradkin
 
Wazagua, Inc.
2520 Trailmate Dr
Sarasota, Florida 34243
Tel.  941-753-7111 ext 305
 
jfradkin@wazagua.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.
 

 

-----Original Message-----
From: Marko Ristola [mailto:marko.ristola@kolumbus.fi] 
Sent: Wednesday, May 11, 2005 1:17 PM
To: Joel Fradkin
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] encoding



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@wazagua.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.
>
> 
>
>
> 
>
> 
>
>
>  
>




view thread (6+ messages)  latest in thread

Message-ID: <000501c5565a$d3141040$797ba8c0@jfradkin>
Permalink:  ../000501c5565a$d3141040$797ba8c0@jfradkin/
Also on:    postgresql.org/message-id/000501c5565a$d3141040$797ba8c0@jfradkin

 · 

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-odbc@postgresql.org
  Cc: jfradkin@wazagua.com, marko.ristola@kolumbus.fi
  Subject: Re: encoding
  In-Reply-To: <000501c5565a$d3141040$797ba8c0@jfradkin>
  References: <42824C03.6060301@kolumbus.fi> <000501c5565a$d3141040$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