Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aW5NN-00080E-K8 for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Feb 2016 16:54:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aW5NN-0000rI-6s for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Feb 2016 16:54:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aVxhV-00009Y-Fv for pgsql-bugs@postgresql.org; Wed, 17 Feb 2016 08:43:09 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aVxhO-0004ca-Mg for pgsql-bugs@postgresql.org; Wed, 17 Feb 2016 08:43:08 +0000 MIME-Version: 1.0 Subject: BUG #13965: Maybe a problem with ODBC UNICODE driver working like ANSI To: pgsql-bugs@postgresql.org From: baptiste.gonod@gmail.com Date: Wed, 17 Feb 2016 08:42:15 +0000 Message-ID: <20160217084215.26357.92495@wrigleys.postgresql.org> X-Pg-Spam-Score: 0.0 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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