Re: Problem with Chinese characters

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Mimi Siu" <bbnoopys(at)yahoo(dot)com>, <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Problem with Chinese characters
Date: 2005-11-04 10:56:21
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC3918@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

> -----Original Message-----
> From: pgsql-odbc-owner(at)postgresql(dot)org
> [mailto:pgsql-odbc-owner(at)postgresql(dot)org] On Behalf Of Mimi Siu
> Sent: 04 November 2005 09:56
> To: pgsql-odbc(at)postgresql(dot)org
> Subject: Re: [ODBC] Problem with Chinese characters
>
> Hello:
>
> I would like to use ANSI ODBC driver as my sql
> statement is already converted to UTF-8 before
> calling SQLExecute(). However, i found from the log
> file that the client encoding is BIG5 which is my
> system's locale, so the text is wrong when it is
> inserted to my UNICODE database.
>
> Can I set the client encoding to UTF8 in my DNS or
> through any ODBC functions??

In the connect settings box in the config, you can add something like:

SET client_encoding TO 'UTF8';

Regards, Dave.

Browse pgsql-odbc by date

  From Date Subject
Next Message Dave Page 2005-11-04 10:58:21 Re: Snapshot 08.01.0006 available for testing
Previous Message Josef Springer 2005-11-04 10:54:27 Re: Snapshot 08.01.0006 available for testing