pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Neumann, Gregor <g.neumann@uni-tuebingen.de>
To: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Character with byte sequence has no equivalent in encoding.
Date: Tue, 15 Jan 2019 15:33:09 +0000
Message-ID: <7ad5c82c795c4fa6a42876d19af0d96b@uni-tuebingen.de> (raw)

Hello Dear Postgresql- Team,

first of all thank you for that great odbc driver!

I discovered an error while using an old version (9.00.02.00) (ANSI) (x64)
Version and wanted to ask for some more information on that one.

I get following error when Selecting some data from an PostgreSQL UTF 8
Database:
{"ERROR [22P05] ERROR: character with byte sequence 0xef 0xbc 0x8c in
encoding \"UTF8\" has no equivalent in encoding \"WIN1252\";\nError while
executing the query"}

When I change the driver to UNICODE I don't get the error at all. When using
Version 10.X I don't get the error on ANSI nor UNICODE.

So my question is would be, if I understand the problem that was raised:

In my opinion it seems that the PostgreSQL ODBC ANSI(x64), Version
9.00.02.00 tries to convert data from my "select- query" from UTF8 to
WIN1252, which doesn't work.
I could find out that it's the "fullwidht comma" which raises the error:
https://www.fileformat.info/info/unicode/char/ff0c/index.htm

So in general did I understand right, that the ANSI driver  x64 uses WIN1252
internally? 
I thought that there is a difference between ANSI / ASCII and WIN1252,
that's why I am a bit confused.

Could you please explain me why the exception came up?

Thank u in advance.

Regards 
Gregor Neumann

Attachments:

  smime.p7s (application/pkcs7-signature, 7.5K) download

Message-ID: <7ad5c82c795c4fa6a42876d19af0d96b@uni-tuebingen.de>
Permalink:  ../7ad5c82c795c4fa6a42876d19af0d96b@uni-tuebingen.de/
Also on:    postgresql.org/message-id/7ad5c82c795c4fa6a42876d19af0d96b@uni-tuebingen.de

 · 

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: g.neumann@uni-tuebingen.de
  Subject: Re: Character with byte sequence has no equivalent in encoding.
  In-Reply-To: <7ad5c82c795c4fa6a42876d19af0d96b@uni-tuebingen.de>
  References: <7ad5c82c795c4fa6a42876d19af0d96b@uni-tuebingen.de>

* 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