pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: baptiste.gonod@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #13965: Maybe a problem with ODBC UNICODE driver working like ANSI
Date: Wed, 17 Feb 2016 08:42:15 +0000
Message-ID: <20160217084215.26357.92495@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      13965
Logged by:          Bat Go
Email address:      baptiste.gonod@gmail.com
PostgreSQL version: 9.3.0
Operating system:   Windows 7 PRO x64
Description:        

Hi,
I've transfered an ANSI database to UTF8. And when I use the UNICODE ODBC
driver (with simply php file), it's the same result as using the ANSI ODBC
driver (so bad accents cause data are in UTF8). I've tried with an other way
to get my data (pgsql) and there's no problem.
So I concluded the UNICODE driver is bugged !

Using pdo in php to send query :

ERROR HERE (using odbc) :
$connec = new PDO('odbc:odbc_utf8');
and odbc_utf8 configuration :
data source : odbc_utf8
server : my_server
User Name : postgres
Password : pwd

NO ERROR HERE (using pgsql) :
$connec = new PDO("pgsql:host=192.33.50.178;dbname=database", "postgres",
"pwd");

I don't know if there's something in the apache or php conf which can cause
this !


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



Message-ID: <20160217084215.26357.92495@wrigleys.postgresql.org>
Permalink:  ../20160217084215.26357.92495@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20160217084215.26357.92495@wrigleys.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: baptiste.gonod@gmail.com
  Subject: Re: BUG #13965: Maybe a problem with ODBC UNICODE driver working like ANSI
  In-Reply-To: <20160217084215.26357.92495@wrigleys.postgresql.org>
  References: <20160217084215.26357.92495@wrigleys.postgresql.org>

* 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