Re: Usind database with encoding UNICODE and vovel

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Alejandro D(dot) Burne" <alejandro(dot)dburne(at)gmail(dot)com>
Cc: <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Usind database with encoding UNICODE and vovel
Date: 2005-08-04 14:33:36
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC97F5@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

> -----Original Message-----
> From: Alejandro D. Burne [mailto:alejandro(dot)dburne(at)gmail(dot)com]
> Sent: 04 August 2005 15:15
> To: Dave Page
> Cc: pgsql-odbc(at)postgresql(dot)org
> Subject: Re: Usind database with encoding UNICODE and vovel
>
> Dave, thanks 4 your time;
> * I've installed MDAC 2.8 with same results.
>
> * If I don't set locale on the client it doesn't work, pgadmin either
> (show wrong encoding data)
>
> After connect trough odbc:
> SHOW CLIENT_ENCODING;
> return -> UTF8

So to make it work, you do " SET client_encoding TO 'LATIN10' " ?

> The same command after connect to the LATIN10 db on pgadmin;
> SHOW CLIENT_ENCODING;
> return -> UNICODE

In pgAdmin it will always be unicode, because pgAdmin explicitly sets it
to unicode unless the database is SQL_ASCII. Thats because pgAdmin and
wxWidgets (the framework it's built with) are fully Unicode aware and
can therefore just let the server handle the conversion.

> Try create a LATIN10 db and connect to it to return client encoding.

The default in MSQUERY is UTF8 (which is UNICODE)

> * About MsQuery I was speaking about visual querys design time, not to
> return millons of records.
> It works fine with other db, because it find the fields to make the
> relationship between tables, right now I'm migrating an app from mysql
> to postgres, the same querys, same data on msquery with mysql (myodbc)
> works fine; with psqlodbc hangup trying to relate tables (on visual
> design, without return a single record), If I type the query it works,
> but don't expect final users write a sql sentence =)

Sounds odd - I can design queries here with no difficulties. You haven't
got SQL Tracing or the Mylog switched on have you?

> * What about the 2 chars used to store strange chars?

Thats likely just multibyte characters being shown as single byte.

Regards, Dave

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Alejandro D. Burne 2005-08-04 15:11:19 Re: Usind database with encoding UNICODE and vovel
Previous Message Alejandro D. Burne 2005-08-04 14:15:16 Re: Usind database with encoding UNICODE and vovel