Re: Unicode display in VB - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject Re: Unicode display in VB
Date
Msg-id EKEJJICOHDIEMGPNIFIJMENLFNAA.Inoue@tpf.co.jp
Whole thread Raw
In response to Unicode display in VB  (Jean-Michel POURE <jm.poure@freesurf.fr>)
List pgsql-odbc
> -----Original Message-----
> From: Jean-Michel POURE
>
> Dear all,
>
> I am still trying to figure out how to display Japanese text in pgAdmin2.
>
> Microsoft Form Two objects and MS Hierarchical Flexgrid Control 6.0 both
> support Unicode display.

IIRC Unicode fundamentally means UCS-2 not UTF-8 under Windows
whereas in PostgreSQL UNICODE means UTF-8 not UCS-2.
Currently psqlodbc driver doesn't provide the functionality for UCS-2
clients to talk to PostgreSQL servers.
We have to implement pretty many SQLxxxxxW API functions and
handle SQL_C_WCHAR type bindings in psqlodbc drvier to provide
the functionality.
If you are in the Japanese environment, you could talk to UTF-8
servers by setting Connect string as SET CLIENT_ENCODING
to 'SJIS' and display Japanese characters but it doesn't seem
your case.

regards,
Hiroshi Inoue

pgsql-odbc by date:

Previous
From: Jean-Michel POURE
Date:
Subject: Unicode display in VB
Next
From: Bruce Momjian
Date:
Subject: [PATCHES] MD5 support for ODBC