pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Kenneth Lundin <kenneth.lundin@dacom.se>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Localized error messages, wrong charset
Date: Sat, 24 Jan 2009 08:43:13 +0900
Message-ID: <497A5611.6000802@tpf.co.jp> (raw)
In-Reply-To: <93d3a1c90901230504u19f6dafau4c04a88aefef55d1@mail.gmail.com>
References: <93d3a1c90901230504u19f6dafau4c04a88aefef55d1@mail.gmail.com>

Hi Kenneth,

Kenneth Lundin wrote:
> Hi,
>  
> i'm coding a project in C# / VS2008 and i'm using postgres/ODBC for 
> database connectivity. Everthing works fine except for one tiny detail, 
> and that is that i'm having trouble with OdbcExceptions and the Message 
> property. It seems that the Message is not in the expected charset since 
> all swedish characters are turned into box-like characters when they are 
> displayed in a normal MessageBox control. I'm not sure which charset 
> windows is using internally since that is sort of invisible to the 
> programmer, but i would have assumed it is using some sort of unicode 
> strings.
>  
> Anyway, either the OdbcException.Message property does not return a 
> UTF-8 string, OR it does return a UTF-8 string and Windows can not use 
> that (but I think it is the first alternative, because if it would have 
> returned UTF-8, there would have been several box-like characters per 
> "real" character, and currently there is a one-to-one match).
>  
> Everywhere else, unicode/UTF-8 strings works beautifully, in Sorting, 
> LIKE, ILIKE etc throughout the application, and it also looks correctly 
> when i'm looking at the data using pgAdmin, so it's only the error 
> messages that does not work.

Could you send me directly the Mylog output ?

regards,
Hiroshi Inoue



view thread (2+ messages)

Message-ID: <497A5611.6000802@tpf.co.jp>
Permalink:  ../497A5611.6000802@tpf.co.jp/
Also on:    postgresql.org/message-id/497A5611.6000802@tpf.co.jp

 · 

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: inoue@tpf.co.jp, kenneth.lundin@dacom.se
  Subject: Re: Localized error messages, wrong charset
  In-Reply-To: <497A5611.6000802@tpf.co.jp>
  References: <93d3a1c90901230504u19f6dafau4c04a88aefef55d1@mail.gmail.com> <497A5611.6000802@tpf.co.jp>

* 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