php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46119 Some UTF8 characters from database show up wrong
Submitted: 2008-09-18 16:06 UTC Modified: 2016-03-08 01:02 UTC
From: jonr at light dot is Assigned: sixd (profile)
Status: Closed Package: PDO OCI
PHP Version: 5.2.6 OS: Windows XP
Private report: No CVE-ID: None
 [2008-09-18 16:06 UTC] jonr at light dot is
Description:
------------
PHP displays some UTF-8 strings wrongly. E.g. "????????" is rendered as "????????". 

Reproduce code:
---------------
First Oracle db insert:
insert into temp values (convert('????????','UTF8'));

$pdo = new PDO('oci:dbname=//localhost/ora','user','pass');
$sth = $pdo->prepare("select * from temp");
$sth->execute();
$sth->fetchAll(PDO::FETCH_ASSOC);
echo $sth[0]['TEXT'];





Expected result:
----------------
????????


Actual result:
--------------
????????

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-18 16:12 UTC] jonr at light dot is
Probably a duplicate:
http://bugs.php.net/bug.php?id=36797
 [2008-09-18 17:15 UTC] jonr at light dot is
Duplicate
 [2016-03-08 01:02 UTC] sixd@php.net
-Package: Oracle related +Package: PDO OCI -Assigned To: +Assigned To: sixd
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 05:01:33 2024 UTC