pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Saito <saito@inetrt.skcapi.co.jp>
To: Андрей Репко <repko@sart.must-ipra.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: client encoding mismatch
Date: Fri, 23 Sep 2005 00:22:06 +0900
Message-ID: <03a301c5bf89$64353300$01324d80@hiroshi5jz7dqj> (raw)
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC2E1A@ratbert.vale-housing.co.uk>
	<032801c5bf75$7563a2b0$01324d80@hiroshi5jz7dqj>
	<791807001.20050922170401@sart.must-ipra.com>

Hi Андрей.

Sorry. I understood the problem.
Please check it Dave.
Thank you.

Regards,
Hiroshi Saito

> Hm, may be I do something wrong :(
> But.
>  1. initdb was run with locale C and DB encoding WIN1251.
>  2. I setup new .msi from Dave v. 08.01.0005.
>  3. psql -> CREATE DATABASE db_1 ENCODING 'win1251';
>  4. Add datasource "PostgreSQL ANSI", without any changes of settings
>  (only all logs on) named db_1
>  5. Create empty .udl file, select db_1 and just press Test
>  connection.
>  6. Get Error that finished by 'client encoding mismatch';
>  :(
> To files with full logs attached.
>
> >> > Hiroshi - can you use win1251 with your patch?
> >>
>
> HS> Please carry out by the method of not setting option.

Attachments:

encoding_patch2.diff (application/octet-stream, 1.3K) download --- multibyte.c.orig Thu Sep 22 23:50:56 2005 +++ multibyte.c Fri Sep 23 00:11:56 2005 @@ -28,7 +28,7 @@ { "EUC_KR", EUC_KR }, { "EUC_TW", EUC_TW }, { "JOHAB", JOHAB }, - { "UNICODE", UTF8 }, + { "UNICODE", UNICODE }, { "UTF8", UTF8 }, /* Corresponding from Version 8.1 */ { "MULE_INTERNAL",MULE_INTERNAL }, { "LATIN1", LATIN1 }, @@ -42,13 +42,13 @@ { "LATIN9", LATIN9 }, { "LATIN10", LATIN10 }, { "WIN1256", WIN1256 }, - { "TCVN", WIN1258 }, + { "TCVN", TCVN }, { "WIN1258", WIN1258 }, /* Corresponding from Version 8.1 */ { "WIN874", WIN874 }, { "KOI8", KOI8R }, - { "WIN", WIN1251 }, + { "WIN", WIN }, { "WIN1251", WIN1251 }, /* Corresponding from Version 8.1 */ - { "ALT", WIN866 }, + { "ALT", ALT }, { "WIN866", WIN866 }, /* Corresponding from Version 8.1 */ { "ISO_8859_5", ISO_8859_5 }, { "ISO_8859_6", ISO_8859_6 }, --- multibyte.h.orig Thu Sep 22 23:51:05 2005 +++ multibyte.h Fri Sep 23 00:14:09 2005 @@ -44,6 +44,12 @@ #define UHC 31 /* UHC */ #define WIN1250 32 /* windows-1250 */ #define GB18030 33 /* GB18030 */ + +#define UNICODE 34 /* UNICODE ( < Ver8.1) */ +#define TCVN 35 /* TCVN ( < Ver8.1) */ +#define ALT 36 /* ALT ( < Var8.1) */ +#define WIN 37 /* WIN ( < Ver8.1) */ + #define OTHER -1 #define MAX_CHARACTERSET_NAME 24 =

view thread (10+ messages)  latest in thread

Message-ID: <03a301c5bf89$64353300$01324d80@hiroshi5jz7dqj>
Permalink:  ../03a301c5bf89$64353300$01324d80@hiroshi5jz7dqj/
Also on:    postgresql.org/message-id/03a301c5bf89$64353300$01324d80@hiroshi5jz7dqj

 ·  · 

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: saito@inetrt.skcapi.co.jp, repko@sart.must-ipra.com
  Subject: Re: client encoding mismatch
  In-Reply-To: <03a301c5bf89$64353300$01324d80@hiroshi5jz7dqj>
  References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC2E1A@ratbert.vale-housing.co.uk> <032801c5bf75$7563a2b0$01324d80@hiroshi5jz7dqj> <791807001.20050922170401@sart.must-ipra.com> <03a301c5bf89$64353300$01324d80@hiroshi5jz7dqj>

* 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